Skip to content

Commit

Permalink
Support for Allman-style enum definitions #270 (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
plink-plonk-will committed Mar 19, 2024
1 parent afb1f25 commit 4dcf42a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gdtoolkit/parser/gdscript.lark
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pass_stmt: "pass"
enum_stmt: enum_regular
| enum_named
enum_regular: "enum" enum_body
enum_named: "enum" NAME enum_body
enum_named: "enum" NAME [_NL] enum_body
enum_body: "{" [enum_element ("," enum_element)* [trailing_comma]] "}"
enum_element: NAME ["=" type_cast]
signal_stmt: "signal" NAME [signal_args]
Expand Down

0 comments on commit 4dcf42a

Please sign in to comment.