Skip to content

Commit 4957772

Browse files
committed
Make string escaping more like python wrt '\'.
1 parent 05ee0e0 commit 4957772

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

checktestdata.g4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ grammar checktestdata;
22

33
COMMENT : '#' (~'\n')*'\n' -> skip;
44
STRING_LITERAL : '"' CHAR* '"';
5-
fragment CHAR : ~["\\] | ESCAPED_CHAR;
5+
fragment CHAR : ESCAPED_CHAR | ~["];
66
fragment ESCAPED_CHAR :
77
'\\"'
88
| '\\\\'

0 commit comments

Comments
 (0)