Skip to content

Commit

Permalink
enum_specifier: change to right precedence; fixes #187
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrouhard committed Jan 9, 2023
1 parent 2b90863 commit 2d2c4ae
Show file tree
Hide file tree
Showing 4 changed files with 257,713 additions and 262,455 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ module.exports = grammar(C, {
))
),

enum_specifier: $ => prec.left(seq(
enum_specifier: $ => prec.right(seq(
'enum',
optional(choice('class', 'struct')),
choice(
Expand Down
2 changes: 1 addition & 1 deletion src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -3677,7 +3677,7 @@
}
},
"enum_specifier": {
"type": "PREC_LEFT",
"type": "PREC_RIGHT",
"value": 0,
"content": {
"type": "SEQ",
Expand Down
Loading

0 comments on commit 2d2c4ae

Please sign in to comment.