Using an experimental version of new optional-brace object literals.

This commit is contained in:
Jeremy Ashkenas
2010-07-24 23:42:37 -07:00
parent f9dff6ffc4
commit d1ffffab04
12 changed files with 232 additions and 147 deletions

View File

@@ -287,6 +287,7 @@ grammar = {
o "", -> []
o "ClassAssign", -> [$1]
o "ClassBody TERMINATOR ClassAssign", -> $1.concat $3
o "{ ClassBody }", -> $2
]
# The three flavors of function call: normal, object instantiation with `new`,