nicer syntax error messages for newlines and indentation

This commit is contained in:
Jeremy Ashkenas
2010-01-12 17:44:37 -05:00
parent 197914bcf7
commit 87e04e9952

View File

@@ -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