diff options
author | Undecidable Robot <undecidabot@gmail.com> | 2016-05-23 08:24:11 +0800 |
---|---|---|
committer | Undecidable Robot <undecidabot@gmail.com> | 2016-05-23 08:24:11 +0800 |
commit | d891c969fca34d1b5ea3a41835d73ec7d067d6eb (patch) | |
tree | 615ac1be3f46f6c567ff319d709ad4ca4d62f6ae /testerrors.lua | |
parent | bd075f80398f4a21c47f8737922f21c4a4024f9b (diff) | |
download | lpeglabel-d891c969fca34d1b5ea3a41835d73ec7d067d6eb.tar.gz lpeglabel-d891c969fca34d1b5ea3a41835d73ec7d067d6eb.tar.bz2 lpeglabel-d891c969fca34d1b5ea3a41835d73ec7d067d6eb.zip |
Improving error reporting of unterminated strings and character classes
Diffstat (limited to 'testerrors.lua')
-rw-r--r-- | testerrors.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/testerrors.lua b/testerrors.lua index 30bbbe2..c118e00 100644 --- a/testerrors.lua +++ b/testerrors.lua | |||
@@ -135,9 +135,16 @@ local patterns = { | |||
135 | S <- [a-z / T | 135 | S <- [a-z / T |
136 | T <- 'x' / & / 'y' | 136 | T <- 'x' / & / 'y' |
137 | ]], | 137 | ]], |
138 | -- 86 | 138 | -- 86 - 87 |
139 | [[ | 139 | [[ |
140 | S <- ('p' -- comment | 140 | S <- ('p' -- comment |
141 | ]], | ||
142 | [[ | ||
143 | X <- ('p / Q (R | ||
144 | / S)) | ||
145 | Q <- 'q' | ||
146 | R <- 'r' | ||
147 | S <- 's' | ||
141 | ]] | 148 | ]] |
142 | } | 149 | } |
143 | 150 | ||