Skip to content

Commit

Permalink
fix: allow captures, quantifiers after MISSING keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
ribru17 authored and amaanq committed Feb 1, 2025
1 parent c74a708 commit 9bf4d5c
Show file tree
Hide file tree
Showing 5 changed files with 2,339 additions and 1,914 deletions.
2 changes: 2 additions & 0 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ module.exports = grammar({
"MISSING",
optional(field("name", choice($.identifier, $.string))),
")",
quantifier($),
captures($),
),

anonymous_node: $ => seq(
Expand Down
23 changes: 23 additions & 0 deletions src/grammar.json

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

20 changes: 20 additions & 0 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 9bf4d5c

Please sign in to comment.