Skip to content

Commit

Permalink
Remove single choice in escape_sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
belltoy committed Jul 30, 2024
1 parent 7ab8b2e commit 8a4ec50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
4 changes: 1 addition & 3 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,9 +437,7 @@ module.exports = grammar({

escape_sequence: _ => token.immediate(seq(
'\\',
choice(
/('|"|\\|n|\n|0|r|t|\{|\})/,
)
/('|"|\\|n|\n|0|r|t|\{|\})/,
)),

raw_string: $ => seq(
Expand Down
9 changes: 2 additions & 7 deletions src/grammar.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8a4ec50

Please sign in to comment.