mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-17 19:11:22 -05:00
Parenthetical -> Parens
This commit is contained in:
@@ -411,8 +411,8 @@ grammar =
|
||||
# where only values are accepted, wrapping it in parentheses will always do
|
||||
# the trick.
|
||||
Parenthetical: [
|
||||
o "( Line )", -> new Parenthetical $2
|
||||
o "( )", -> new Parenthetical new Literal ''
|
||||
o "( Line )", -> new Parens $2
|
||||
o "( )", -> new Parens new Literal ''
|
||||
]
|
||||
|
||||
# The condition portion of a while loop.
|
||||
@@ -557,7 +557,7 @@ grammar =
|
||||
if $2 is '!in'
|
||||
new Op '!', new In $1, $3
|
||||
else
|
||||
new Op '!', new Parenthetical new Op $2[1..], $1, $3
|
||||
new Op '!', new Parens new Op $2[1..], $1, $3
|
||||
else
|
||||
if $2 is 'in' then new In $1, $3 else new Op $2, $1, $3
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user