Skip to content

Commit

Permalink
fix: Record patterns missing closing right bracket (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
KaranAhlawat authored Jul 28, 2024
1 parent bfd40a5 commit af8cd5b
Show file tree
Hide file tree
Showing 5 changed files with 376,309 additions and 396,784 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ module.exports = grammar({
list_pattern: ($) => seq("[", optional($._list_pattern_content), "]"),
array_pattern: ($) => seq("[|", optional($._list_pattern_content), "|]"),
record_pattern: ($) =>
prec.left(seq("{", $.field_pattern, repeat(seq(";", $.field_pattern)))),
prec.left(seq("{", $.field_pattern, repeat(seq(";", $.field_pattern)), "}")),

identifier_pattern: ($) =>
prec.left(
Expand Down
8 changes: 6 additions & 2 deletions src/grammar.json

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

4 changes: 2 additions & 2 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 af8cd5b

Please sign in to comment.