Skip to content

Commit

Permalink
Merge pull request #216 from aibaars/fix-parse-error
Browse files Browse the repository at this point in the history
Fix parse error in 'foo! if condition'
  • Loading branch information
aibaars authored May 16, 2022
2 parents adec59e + 469e45a commit 6334d6a
Show file tree
Hide file tree
Showing 4 changed files with 281,228 additions and 281,218 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -975,7 +975,7 @@ module.exports = grammar({
rest_assignment: $ => prec(-1, seq('*', optional($._lhs))),

_function_identifier: $ => choice(alias($.identifier_suffix, $.identifier), alias($.constant_suffix, $.constant)),
_function_identifier_call: $ => prec.right(field('method', $._function_identifier)),
_function_identifier_call: $ => prec.left(field('method', $._function_identifier)),
_lhs: $ => prec.left(choice(
$._variable,
$.true,
Expand Down
2 changes: 1 addition & 1 deletion src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -6383,7 +6383,7 @@
]
},
"_function_identifier_call": {
"type": "PREC_RIGHT",
"type": "PREC_LEFT",
"value": 0,
"content": {
"type": "FIELD",
Expand Down
Loading

0 comments on commit 6334d6a

Please sign in to comment.