Skip to content

Commit

Permalink
Bugfix to attribute identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
jpt13653903 committed Jun 27, 2024
1 parent dcb4727 commit bb42440
Show file tree
Hide file tree
Showing 5 changed files with 111,543 additions and 111,460 deletions.
9 changes: 8 additions & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1221,6 +1221,13 @@ module.exports = grammar({
alias($.library_type, $.label),
),

_attribute: $ => choice(
alias($.identifier, $.attribute_identifier),
alias($.library_constant, $.attribute_identifier),
alias($.library_function, $.attribute_identifier),
alias($.library_type, $.attribute_identifier),
),

_unit: $ => choice(
alias($.identifier, $.unit),
alias($.library_constant, $.unit),
Expand Down Expand Up @@ -1327,7 +1334,7 @@ module.exports = grammar({
),

_attribute_designator: $ => choice(
alias($._identifier, $.attribute_identifier),
$._attribute,
$.attribute_function,
$.attribute_impure_function,
$.attribute_mode_view,
Expand Down
50 changes: 43 additions & 7 deletions src/grammar.json

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

31 changes: 4 additions & 27 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 bb42440

Please sign in to comment.