Skip to content

Commit

Permalink
fix raw string with \ (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lycs-D authored Mar 25, 2024
1 parent 8814cfa commit 5216747
Show file tree
Hide file tree
Showing 4 changed files with 159 additions and 284 deletions.
4 changes: 2 additions & 2 deletions tree_sitter_v/grammar.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -1056,12 +1056,12 @@ module.exports = grammar({
choice(
seq(
$.__r_single_quote,
repeat(token.immediate(prec.right(1, /[^'\\]+/))),
repeat(token.immediate(prec.right(1, /[^']+/))),
$.__single_quote,
),
seq(
$.__r_double_quote,
repeat(token.immediate(prec.right(1, /[^"\\]+/))),
repeat(token.immediate(prec.right(1, /[^"]+/))),
$.__double_quote,
),
),
Expand Down
4 changes: 2 additions & 2 deletions tree_sitter_v/src/grammar.json

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

Loading

0 comments on commit 5216747

Please sign in to comment.