Skip to content

Commit

Permalink
[tree_sitter_v] support <> of generic type
Browse files Browse the repository at this point in the history
  • Loading branch information
Lycs-D committed Jan 9, 2024
1 parent 2d5d12e commit 0f12f4f
Show file tree
Hide file tree
Showing 5 changed files with 198,304 additions and 194,666 deletions.
8 changes: 7 additions & 1 deletion tree_sitter_v/grammar.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,13 @@ module.exports = grammar({
),

type_parameters: ($) =>
prec.dynamic(2, seq(token.immediate("["), comma_sep1($.plain_type), "]")),
prec.dynamic(
2,
choice(
seq(token.immediate("["), comma_sep1($.plain_type), "]"),
seq(token.immediate("<"), comma_sep1($.plain_type), ">"),
),
),

argument_list: ($) =>
seq(
Expand Down
96 changes: 71 additions & 25 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 0f12f4f

Please sign in to comment.