Skip to content

Commit d58f8a6

Browse files
fix(grammar): adapt escapes
1 parent 56348ac commit d58f8a6

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

grammar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ module.exports = grammar({
9696

9797
_identifier: _ => /[\w-][\w.-]*/,
9898

99-
_escape: _ => /\\[abeEfnrtv\\]/,
99+
_escape: _ => /\\[nrt0\\vf`"]/,
100100

101101
number: _ => /\d+/,
102102

src/grammar.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/parser.c

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)