Skip to content

Commit

Permalink
fix: allow preproc calls in enumerator list items
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed Jan 22, 2024
1 parent df6ac34 commit 34f4c7e
Show file tree
Hide file tree
Showing 4 changed files with 51,627 additions and 51,587 deletions.
2 changes: 2 additions & 0 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -624,12 +624,14 @@ module.exports = grammar({
seq($.enumerator, ','),
alias($.preproc_if_in_enumerator_list, $.preproc_if),
alias($.preproc_ifdef_in_enumerator_list, $.preproc_ifdef),
seq($.preproc_call, ','),
)),
optional(seq(
choice(
$.enumerator,
alias($.preproc_if_in_enumerator_list_no_comma, $.preproc_if),
alias($.preproc_ifdef_in_enumerator_list_no_comma, $.preproc_ifdef),
$.preproc_call,
),
)),
'}',
Expand Down
17 changes: 17 additions & 0 deletions src/grammar.json

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

4 changes: 4 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 34f4c7e

Please sign in to comment.