Skip to content

Commit

Permalink
fix: Structs/Sessages field punning (#30)
Browse files Browse the repository at this point in the history
Doesn't require an update in any of the queries!
  • Loading branch information
novusnota authored May 4, 2024
1 parent 68c48c5 commit f65460e
Show file tree
Hide file tree
Showing 6 changed files with 2,524 additions and 2,478 deletions.
5 changes: 4 additions & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,10 @@ module.exports = grammar({
seq("{", commaSepWithTrailing($.instance_argument), "}"),

instance_argument: ($) =>
seq(field("name", $.identifier), ":", field("value", $._expression)),
seq(
field("name", $.identifier),
optional(seq(":", field("value", $._expression))),
),

initOf: ($) =>
seq(
Expand Down
33 changes: 23 additions & 10 deletions src/grammar.json

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

2 changes: 1 addition & 1 deletion 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 f65460e

Please sign in to comment.