Skip to content

Commit

Permalink
Add support for parsing nested unit switch with lahead
Browse files Browse the repository at this point in the history
This adds support for parsing unit switch with lahead, zeek/spicy#1810.
  • Loading branch information
bbannier committed Jul 29, 2024
1 parent aba0ac4 commit bab8378
Show file tree
Hide file tree
Showing 4 changed files with 212,106 additions and 209,765 deletions.
1 change: 1 addition & 0 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ module.exports = grammar({
"->",
choice(
$.field_decl,
$.unit_switch,
seq("{", choice(repeat($.field_decl), $.unit_switch), "}"),
),
),
Expand Down
4 changes: 4 additions & 0 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 bab8378

Please # to comment.