aboutsummaryrefslogtreecommitdiff
path: root/relabel.lua
diff options
context:
space:
mode:
authorUndecidable Robot <undecidabot@gmail.com>2016-05-16 17:44:55 +0800
committerUndecidable Robot <undecidabot@gmail.com>2016-05-16 17:44:55 +0800
commit08296c5f604ad40428e642f09fd9b4b479e329cc (patch)
tree622b602414e5cabb91503785cc730d8ce9cf1d73 /relabel.lua
parentc96e44d5bf5db7ddc58da3cb5454be3544892125 (diff)
downloadlpeglabel-08296c5f604ad40428e642f09fd9b4b479e329cc.tar.gz
lpeglabel-08296c5f604ad40428e642f09fd9b4b479e329cc.tar.bz2
lpeglabel-08296c5f604ad40428e642f09fd9b4b479e329cc.zip
Removing unnecessary pattern from old error detection
Diffstat (limited to 'relabel.lua')
-rw-r--r--relabel.lua7
1 files changed, 1 insertions, 6 deletions
diff --git a/relabel.lua b/relabel.lua
index 2cdf1ad..0655418 100644
--- a/relabel.lua
+++ b/relabel.lua
@@ -113,15 +113,10 @@ end
113 113
114local S = (Predef.space + "--" * (any - Predef.nl)^0)^0 114local S = (Predef.space + "--" * (any - Predef.nl)^0)^0
115 115
116local name = m.R("AZ", "az", "__") * m.R("AZ", "az", "__", "09")^0 116local name = m.C(m.R("AZ", "az", "__") * m.R("AZ", "az", "__", "09")^0)
117 117
118local arrow = S * "<-" 118local arrow = S * "<-"
119 119
120local seq_follow = m.P"/" + ")" + "}" + ":}" + "~}" + "|}" + (name * arrow) + -1
121
122name = m.C(name)
123
124
125-- a defined name only have meaning in a given environment 120-- a defined name only have meaning in a given environment
126local Def = name * m.Carg(1) 121local Def = name * m.Carg(1)
127 122