diff options
author | Undecidable Robot <undecidabot@gmail.com> | 2016-05-16 21:07:03 +0800 |
---|---|---|
committer | Undecidable Robot <undecidabot@gmail.com> | 2016-05-16 21:07:03 +0800 |
commit | 043f455b6ef018b7ee06829845fd7b1f9f08f74f (patch) | |
tree | cae9ac24866e766d0b11076cfaf69e4890bfabf4 /testerrors.lua | |
parent | 977213610df9ca3065de4ae60c7cf012c46f2834 (diff) | |
download | lpeglabel-043f455b6ef018b7ee06829845fd7b1f9f08f74f.tar.gz lpeglabel-043f455b6ef018b7ee06829845fd7b1f9f08f74f.tar.bz2 lpeglabel-043f455b6ef018b7ee06829845fd7b1f9f08f74f.zip |
Adding better handling of unterminated strings
Diffstat (limited to 'testerrors.lua')
-rw-r--r-- | testerrors.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/testerrors.lua b/testerrors.lua index bcab65f..271773a 100644 --- a/testerrors.lua +++ b/testerrors.lua | |||
@@ -123,10 +123,14 @@ local patterns = { | |||
123 | [[ A <- %nosuch ('error' ]], | 123 | [[ A <- %nosuch ('error' ]], |
124 | [[A <- Unknown Rules]], | 124 | [[A <- Unknown Rules]], |
125 | [['a' / &@ ('c' / 'd')]], | 125 | [['a' / &@ ('c' / 'd')]], |
126 | -- 81 - 83 | 126 | -- 81 - 84 |
127 | [['x' / & / 'y']], | 127 | [['x' / & / 'y']], |
128 | [[&/'p'/!/'q']], | 128 | [[&/'p'/!/'q']], |
129 | [['p'//'q']], | 129 | [['p'//'q']], |
130 | [[ | ||
131 | S <- 'forgot to close / T | ||
132 | T <- 'T' & / 't' | ||
133 | ]] | ||
130 | } | 134 | } |
131 | 135 | ||
132 | for i, patt in ipairs(patterns) do | 136 | for i, patt in ipairs(patterns) do |