Skip to content

Commit

Permalink
Fix to support struct field default value.
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed Feb 23, 2024
1 parent 8af2cbb commit bc3e002
Show file tree
Hide file tree
Showing 5 changed files with 27,379 additions and 26,934 deletions.
1 change: 1 addition & 0 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ module.exports = grammar({
field("name", $._field_identifier),
":",
field("type", $._option_type),
optional(seq("=", field("value", $._expression))),
),

ordered_field_declaration_list: ($) =>
Expand Down
25 changes: 25 additions & 0 deletions src/grammar.json

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

10 changes: 10 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 bc3e002

Please sign in to comment.