Skip to content

Commit

Permalink
[tree_sitter_v] fix string_interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
Lycs-D committed Mar 18, 2024
1 parent 3cfb7d4 commit adc4f85
Show file tree
Hide file tree
Showing 3 changed files with 207,599 additions and 203,945 deletions.
9 changes: 7 additions & 2 deletions tree_sitter_v/grammar.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -1100,8 +1100,13 @@ module.exports = grammar({
string_interpolation: ($) =>
seq(
alias($.__dolcbr, $.interpolation_opening),
alias($._expression, $.interpolation_expression),
optional($.format_specifier),
choice(
repeat(alias($._expression, $.interpolation_expression)),
seq(
alias($._expression, $.interpolation_expression),
$.format_specifier,
),
),
alias($.__rcbr, $.interpolation_closing),
),

Expand Down
38 changes: 26 additions & 12 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 adc4f85

Please sign in to comment.