Skip to content

Commit 72f815c

Browse files
committed
Add tests for escaped-char changes made in #743
1 parent 1e3d176 commit 72f815c

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

test/tests/syntax.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@
2626
"src": "\\\\",
2727
"exp": "\\"
2828
},
29+
{
30+
"description": "message -> simple-message -> simple-start pattern -> 1*escaped-char",
31+
"src": "\\\\\\{\\|\\}",
32+
"exp": "\\{|}"
33+
},
2934
{
3035
"description": "message -> simple-message -> simple-start pattern -> simple-start-char pattern -> ... -> simple-start-char *text-char placeholder",
3136
"src": "hello {world}",
@@ -448,9 +453,9 @@
448453
"exp": "\\"
449454
},
450455
{
451-
"description": "... quoted-literal -> \"|\" quoted-char escaped-char \"|\"",
452-
"src": "{|a\\\\|}",
453-
"exp": "a\\"
456+
"description": "... quoted-literal -> \"|\" quoted-char 1*escaped-char \"|\"",
457+
"src": "{|a\\\\\\{\\|\\}|}",
458+
"exp": "a\\{|}"
454459
},
455460
{
456461
"description": "... unquoted-literal -> number-literal -> %x30",

0 commit comments

Comments
 (0)