aboutsummaryrefslogtreecommitdiff
path: root/testerrors.lua
diff options
context:
space:
mode:
authorUndecidable Robot <undecidabot@gmail.com>2016-05-16 17:42:42 +0800
committerUndecidable Robot <undecidabot@gmail.com>2016-05-16 17:42:42 +0800
commitc96e44d5bf5db7ddc58da3cb5454be3544892125 (patch)
treecafb01275a07c23ef730df0d6c5ddd07dcba69c6 /testerrors.lua
parentab140456610fb851248198d22e8fc12b1c82a4ad (diff)
downloadlpeglabel-c96e44d5bf5db7ddc58da3cb5454be3544892125.tar.gz
lpeglabel-c96e44d5bf5db7ddc58da3cb5454be3544892125.tar.bz2
lpeglabel-c96e44d5bf5db7ddc58da3cb5454be3544892125.zip
Adding error recovery to some missing closing tokens
Diffstat (limited to 'testerrors.lua')
-rw-r--r--testerrors.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/testerrors.lua b/testerrors.lua
index 7ffcd04..dff35df 100644
--- a/testerrors.lua
+++ b/testerrors.lua
@@ -102,7 +102,12 @@ local patterns = {
102 -- 71-73 102 -- 71-73
103 [['a'/{1}'b'/'c']], 103 [['a'/{1}'b'/'c']],
104 [[x <- {:x:}]], 104 [[x <- {:x:}]],
105 [[&'p'/&/!/'p'^'q']] 105 [[&'p'/&/!/'p'^'q']],
106 [[
107 A <- 'a' (B 'b'
108 B <- 'x' / !
109 C <- 'c'
110 ]]
106} 111}
107 112
108for i, patt in ipairs(patterns) do 113for i, patt in ipairs(patterns) do