Skip to content

Commit

Permalink
nicer syntax error messages for newlines and indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Jan 12, 2010
1 parent 197914b commit 87e04e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/coffee_script/grammar.y
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ token INDENT OUTDENT

# Declare order of operations.
prechigh
right NEW
left '?'
nonassoc UMINUS NOT '!' '!!' '~' '++' '--'
left '*' '/' '%'
Expand All @@ -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
Expand Down

0 comments on commit 87e04e9

Please sign in to comment.