mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-17 19:11:22 -05:00
fixing issue #745 ... precedence of huh operator.
This commit is contained in:
@@ -535,7 +535,6 @@ grammar =
|
||||
o "Expression --", -> new Op '--', $1, null, true
|
||||
o "Expression ++", -> new Op '++', $1, null, true
|
||||
|
||||
o "Expression ? Expression", -> new Op '?', $1, $3
|
||||
o "Expression + Expression", -> new Op '+', $1, $3
|
||||
o "Expression - Expression", -> new Op '-', $1, $3
|
||||
o "Expression == Expression", -> new Op '==', $1, $3
|
||||
@@ -571,9 +570,9 @@ grammar =
|
||||
#
|
||||
# (2 + 3) * 4
|
||||
operators = [
|
||||
["right", '?']
|
||||
["left", 'CALL_START', 'CALL_END']
|
||||
["nonassoc", '++', '--']
|
||||
["left", '?']
|
||||
["right", 'UNARY']
|
||||
["left", 'MATH']
|
||||
["left", '+', '-']
|
||||
|
||||
Reference in New Issue
Block a user