Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
Fix generics with other generics on first parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
hugopl committed Dec 5, 2024
1 parent 813f9c0 commit 258b819
Show file tree
Hide file tree
Showing 6 changed files with 11,905 additions and 11,554 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ module.exports = grammar({

type_name: $ => seq($.constant, optional($.generics)),

generics: $ => seq('(', $.constant, repeat(seq(',', $.type_name)), ')'),
generics: $ => seq('(', $.type_name, repeat(seq(',', $.type_name)), optional(','), ')'),

inherit: $ => seq('<', $.type_name),

Expand Down
14 changes: 13 additions & 1 deletion src/grammar.json

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

4 changes: 0 additions & 4 deletions src/node-types.json

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

Loading

0 comments on commit 258b819

Please sign in to comment.