diff --git a/lib/coffee_script/grammar.y b/lib/coffee_script/grammar.y index 9ca0af20..d0e82c25 100644 --- a/lib/coffee_script/grammar.y +++ b/lib/coffee_script/grammar.y @@ -31,7 +31,7 @@ prechigh left "." right THROW FOR IN WHILE NEW SUPER left UNLESS IF ELSE EXTENDS - left ":" '||=' '&&=' + left ':' '=' '||=' '&&=' right RETURN preclow @@ -116,6 +116,7 @@ rule # Assignment to a variable. Assign: Value ":" Expression { result = AssignNode.new(val[0], val[2]) } + | Value "=" Expression { result = AssignNode.new(val[0], val[2]) } ; # Assignment within an object literal.