From ab8dc946fbc12e0b7e96cf5f2c1064c8c43b6ede Mon Sep 17 00:00:00 2001 From: Undecidable Robot Date: Sat, 21 May 2016 23:30:49 +0800 Subject: Improving error handling of unterminated character classes --- testerrors.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'testerrors.lua') diff --git a/testerrors.lua b/testerrors.lua index 271773a..b82c591 100644 --- a/testerrors.lua +++ b/testerrors.lua @@ -123,13 +123,17 @@ local patterns = { [[ A <- %nosuch ('error' ]], [[A <- Unknown Rules]], [['a' / &@ ('c' / 'd')]], - -- 81 - 84 + -- 81 - 85 [['x' / & / 'y']], [[&/'p'/!/'q']], [['p'//'q']], [[ S <- 'forgot to close / T T <- 'T' & / 't' + ]], + [[ + S <- [a-z / T + T <- 'x' / & / 'y' ]] } -- cgit v1.2.3-55-g6feb