diff options
author | Undecidable Robot <undecidabot@gmail.com> | 2016-05-21 23:30:49 +0800 |
---|---|---|
committer | Undecidable Robot <undecidabot@gmail.com> | 2016-05-21 23:44:23 +0800 |
commit | ab8dc946fbc12e0b7e96cf5f2c1064c8c43b6ede (patch) | |
tree | 1dbb7f23a7170290f2968dd9b05f6b48b1f6fc8f /testerrors.lua | |
parent | 89649e1023b7ef2edc316f904fdc2273de31da0c (diff) | |
download | lpeglabel-ab8dc946fbc12e0b7e96cf5f2c1064c8c43b6ede.tar.gz lpeglabel-ab8dc946fbc12e0b7e96cf5f2c1064c8c43b6ede.tar.bz2 lpeglabel-ab8dc946fbc12e0b7e96cf5f2c1064c8c43b6ede.zip |
Improving error handling of unterminated character classes
Diffstat (limited to '')
-rw-r--r-- | testerrors.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/testerrors.lua b/testerrors.lua index 271773a..b82c591 100644 --- a/testerrors.lua +++ b/testerrors.lua | |||
@@ -123,13 +123,17 @@ 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 - 84 | 126 | -- 81 - 85 |
127 | [['x' / & / 'y']], | 127 | [['x' / & / 'y']], |
128 | [[&/'p'/!/'q']], | 128 | [[&/'p'/!/'q']], |
129 | [['p'//'q']], | 129 | [['p'//'q']], |
130 | [[ | 130 | [[ |
131 | S <- 'forgot to close / T | 131 | S <- 'forgot to close / T |
132 | T <- 'T' & / 't' | 132 | T <- 'T' & / 't' |
133 | ]], | ||
134 | [[ | ||
135 | S <- [a-z / T | ||
136 | T <- 'x' / & / 'y' | ||
133 | ]] | 137 | ]] |
134 | } | 138 | } |
135 | 139 | ||