Skip to content

Commit

Permalink
Attribute Fixes (#183)
Browse files Browse the repository at this point in the history
* Fix multiple arguments to attribute.
* Use singular `argument` to match convention.
* Allow attributes on aliases.

Fixes #158
Fixes #176
  • Loading branch information
kennyp authored Oct 27, 2024
1 parent 6aee3d2 commit 1014d2f
Show file tree
Hide file tree
Showing 6 changed files with 3,944 additions and 3,798 deletions.
3 changes: 2 additions & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ module.exports = grammar({
// alias : 'alias' NAME ':=' NAME
alias: ($) =>
seq(
repeat($.attribute),
"alias",
field("left", $.identifier),
":=",
Expand Down Expand Up @@ -232,7 +233,7 @@ module.exports = grammar({
seq(
$.identifier,
"(",
comma_sep1(field("argument", $.string)),
field("argument", comma_sep1($.string)),
")",
),
),
Expand Down
99 changes: 49 additions & 50 deletions src/grammar.json

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

14 changes: 14 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 1014d2f

Please sign in to comment.