Skip to content

Commit

Permalink
Allow for multiple identifiers before ':' in named_type
Browse files Browse the repository at this point in the history
  • Loading branch information
cornishon committed Dec 30, 2024
1 parent e8adc73 commit 42d8225
Show file tree
Hide file tree
Showing 4 changed files with 280,527 additions and 277,924 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ module.exports = grammar({
'}',
),

named_type: $ => prec.right(seq($.identifier, ':', $.type, optional(seq('=', $.literal)))),
named_type: $ => prec.right(seq(commaSep1($.identifier), ':', $.type, optional(seq('=', $.literal)))),

default_type: $ => seq($.identifier, ':=', $.expression),

Expand Down
25 changes: 23 additions & 2 deletions 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 42d8225

Please sign in to comment.