Skip to content

Commit

Permalink
feat: Trailing commas for trait lists + more tests for trailing commas
Browse files Browse the repository at this point in the history
  • Loading branch information
novusnota committed Apr 15, 2024
1 parent d1ebc9b commit 0e70bff
Show file tree
Hide file tree
Showing 9 changed files with 1,798 additions and 1,746 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ module.exports = grammar({

contract_attributes: ($) => repeat1(seq("@interface", "(", $.string, ")")),

trait_list: ($) => seq("with", commaSep1($.identifier)),
trait_list: ($) => seq("with", commaSepWithTrailing($.identifier)),

contract_body: ($) =>
seq(
Expand Down
54 changes: 37 additions & 17 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 0e70bff

Please sign in to comment.