Skip to content

Commit

Permalink
class: Simplify declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
obiwac committed Aug 31, 2024
1 parent 40e04c0 commit da608d4
Show file tree
Hide file tree
Showing 4 changed files with 1,374 additions and 1,601 deletions.
4 changes: 1 addition & 3 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ module.exports = grammar({
field("qualifiers", optional($.qualifier_list)),
"class",
field("name", $.identifier),
"{",
field("body", repeat($.statement)),
"}",
field("body", $.statement),
),

print: $ => seq("print", field("msg", $.expression)),
Expand Down
15 changes: 2 additions & 13 deletions src/grammar.json

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

4 changes: 2 additions & 2 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 da608d4

Please sign in to comment.