Skip to content

Commit

Permalink
Fix small issue in the escaping rules for strings in `PicoWithCategor…
Browse files Browse the repository at this point in the history
…ies`
  • Loading branch information
sungshik committed Sep 6, 2024
1 parent 5603cc8 commit dafaa08
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ lexical Natural = [0-9]+ !>> [0-9];
lexical String = "\"" Char* "\"";

lexical Char
= ![\"]
| "\\" [\"];
= ![\\\"]
| "\\" [\\\"];

keyword Keyword
= "begin"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,19 @@
bar"
# ^^^^ string.quoted.double

"foo\"
# ^^^^^^ string.quoted.double
bar"
# ^^^^ string.quoted.double

"foo
# ^^^^ string.quoted.double
\"
# ^^ string.quoted.double
bar"
# ^^^^ string.quoted.double
# ^^^^ string.quoted.double

"foo
# ^^^^ string.quoted.double
\"bar"
# ^^^^^^ string.quoted.double

0 comments on commit dafaa08

Please sign in to comment.