diff options
author | Undecidable Robot <undecidabot@gmail.com> | 2016-08-20 00:50:52 +0800 |
---|---|---|
committer | Undecidable Robot <undecidabot@gmail.com> | 2016-08-20 00:50:52 +0800 |
commit | 727ee89b490f91a59cd4147c717aa35939940a57 (patch) | |
tree | 14dfd4781579ab2735756739a90361cca3b04985 /testrelabelparser.lua | |
parent | fcb4f1bf2172186cef1fa3fb57be5cd03aaba713 (diff) | |
download | lpeglabel-727ee89b490f91a59cd4147c717aa35939940a57.tar.gz lpeglabel-727ee89b490f91a59cd4147c717aa35939940a57.tar.bz2 lpeglabel-727ee89b490f91a59cd4147c717aa35939940a57.zip |
Updating re grammar so only one label can be thrown
Diffstat (limited to 'testrelabelparser.lua')
-rw-r--r-- | testrelabelparser.lua | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/testrelabelparser.lua b/testrelabelparser.lua index 46e01ee..1f1a8cf 100644 --- a/testrelabelparser.lua +++ b/testrelabelparser.lua | |||
@@ -371,12 +371,6 @@ L1:C13: expected a label after the comma | |||
371 | ^ | 371 | ^ |
372 | ]]) | 372 | ]]) |
373 | 373 | ||
374 | testerror([[%{ a,,b,,c }]], [[ | ||
375 | L1:C6: expected a label after the comma | ||
376 | %{ a,,b,,c } | ||
377 | ^ | ||
378 | ]]) | ||
379 | |||
380 | -- testing ExpNameOrLab | 374 | -- testing ExpNameOrLab |
381 | 375 | ||
382 | testerror([[% s]], [[ | 376 | testerror([[% s]], [[ |
@@ -468,9 +462,9 @@ L1:C8: missing closing '>' | |||
468 | -- testing MisClose7 | 462 | -- testing MisClose7 |
469 | 463 | ||
470 | testerror([['{' %{ a, b '}']], [[ | 464 | testerror([['{' %{ a, b '}']], [[ |
471 | L1:C12: missing closing '}' | 465 | L1:C9: missing closing '}' |
472 | '{' %{ a, b '}' | 466 | '{' %{ a, b '}' |
473 | ^ | 467 | ^ |
474 | ]]) | 468 | ]]) |
475 | 469 | ||
476 | -- testing MisClose8 | 470 | -- testing MisClose8 |