From 851ec824950b576a833b5b94e5d81a8d7e4f4aec Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Fri, 25 Dec 2009 07:08:57 -0800 Subject: [PATCH] allowing chained function calls, one right after another --- lib/coffee_script/grammar.y | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.