diff --git a/lib/coffee_script/grammar.y b/lib/coffee_script/grammar.y index e1ff0196..03d9bc3c 100644 --- a/lib/coffee_script/grammar.y +++ b/lib/coffee_script/grammar.y @@ -259,12 +259,13 @@ rule # Extending an object's prototype. Extends: - Value EXTENDS Expression { result = ExtendsNode.new(val[0], val[2]) } + Value EXTENDS Expression { result = ExtendsNode.new(val[0], val[2]) } ; # A generic function invocation. Invocation: Value "(" ArgList ")" { result = CallNode.new(val[0], val[2]) } + | Invocation "(" ArgList ")" { result = CallNode.new(val[0], val[2]) } ; # Calling super.