From 87e04e9952d4879dda13848e1267deba0c490438 Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Tue, 12 Jan 2010 17:44:37 -0500 Subject: [PATCH] nicer syntax error messages for newlines and indentation --- 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 457b1713..15e78b80 100644 --- a/lib/coffee_script/grammar.y +++ b/lib/coffee_script/grammar.y @@ -20,6 +20,7 @@ token INDENT OUTDENT # Declare order of operations. prechigh + right NEW left '?' nonassoc UMINUS NOT '!' '!!' '~' '++' '--' left '*' '/' '%' @@ -35,7 +36,7 @@ prechigh right INDENT left OUTDENT right WHEN LEADING_WHEN IN OF BY - right THROW FOR NEW SUPER + right THROW FOR SUPER left EXTENDS left ASSIGN '||=' '&&=' right RETURN