eliminating the IndentedAssignList nonterminal.

This commit is contained in:
Jeremy Ashkenas
2010-04-25 21:22:29 -04:00
parent 315a2c63fa
commit 328a14014c
3 changed files with 125 additions and 137 deletions

View File

@@ -256,7 +256,6 @@ grammar: {
# In CoffeeScript, an object literal is simply a list of assignments.
Object: [
o "{ AssignList OptComma }", -> new ObjectNode $2
o "{ IndentedAssignList OptComma }", -> new ObjectNode $2
]
# Assignment of properties within an object literal can be separated by
@@ -267,10 +266,6 @@ grammar: {
o "AssignList , AssignObj", -> $1.concat [$3]
o "AssignList TERMINATOR AssignObj", -> $1.concat [$3]
o "AssignList , TERMINATOR AssignObj", -> $1.concat [$4]
]
# An **AssignList** within a block indentation.
IndentedAssignList: [
o "INDENT AssignList OptComma OUTDENT", -> $2
]