aboutsummaryrefslogtreecommitdiff
path: root/testerrors.lua
diff options
context:
space:
mode:
authorUndecidable Robot <undecidabot@gmail.com>2016-05-08 16:14:55 +0800
committerUndecidable Robot <undecidabot@gmail.com>2016-05-12 20:43:43 +0800
commit488fae08f969a09a6cff60470e119cf7010cf834 (patch)
tree101cd6ffbabc970fb9b884fcb712a70f9d7f8918 /testerrors.lua
parent76170bacefad40b79a1f8a93294d2c96711a3b1e (diff)
downloadlpeglabel-488fae08f969a09a6cff60470e119cf7010cf834.tar.gz
lpeglabel-488fae08f969a09a6cff60470e119cf7010cf834.tar.bz2
lpeglabel-488fae08f969a09a6cff60470e119cf7010cf834.zip
Adding a basic error recovery mechanism
Diffstat (limited to 'testerrors.lua')
-rw-r--r--testerrors.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/testerrors.lua b/testerrors.lua
index 07bbaef..7ffcd04 100644
--- a/testerrors.lua
+++ b/testerrors.lua
@@ -99,9 +99,10 @@ local patterns = {
99 [[{||}]], 99 [[{||}]],
100 [[{|@|}]], 100 [[{|@|}]],
101 [['p' {| 'q' / 'r' }]], 101 [['p' {| 'q' / 'r' }]],
102 -- 71-72 102 -- 71-73
103 [['a'/{1}'b'/'c']], 103 [['a'/{1}'b'/'c']],
104 [[x <- {:x:}]], 104 [[x <- {:x:}]],
105 [[&'p'/&/!/'p'^'q']]
105} 106}
106 107
107for i, patt in ipairs(patterns) do 108for i, patt in ipairs(patterns) do