Skip to content

Commit aa262ec

Browse files
committed
Coco 5622aef: grammar: POST_IF now has the same precedence as FOR/WHILE, making work as expected
1 parent 338e6d7 commit aa262ec

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/grammar.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/parser.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/grammar.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,8 +566,8 @@ operators = [
566566
['nonassoc', 'INDENT', 'OUTDENT']
567567
['right', '=', ':', 'COMPOUND_ASSIGN', 'RETURN', 'THROW', 'EXTENDS']
568568
['right', 'FORIN', 'FOROF', 'BY', 'WHEN']
569-
['right', 'IF', 'UNLESS', 'ELSE', 'FOR', 'WHILE', 'UNTIL', 'LOOP', 'SUPER', 'CLASS']
570-
['right', 'POST_IF', 'POST_UNLESS']
569+
['right', 'IF', 'UNLESS', 'ELSE', 'UNTIL', 'LOOP', 'SUPER', 'CLASS']
570+
['left', 'POST_IF', 'POST_UNLESS', 'FOR', 'WHILE']
571571
]
572572

573573
# Wrapping Up

0 commit comments

Comments
 (0)