got comments within object and array literals working out

This commit is contained in:
Jeremy Ashkenas
2009-12-22 11:50:43 -05:00
parent 65809d08f6
commit ec58d6fda2
6 changed files with 47 additions and 4 deletions

View File

@@ -118,6 +118,7 @@ rule
# Assignment within an object literal.
AssignObj:
IDENTIFIER ":" Expression { result = AssignNode.new(val[0], val[2], :object) }
| Comment { result = val[0] }
;
# A return statement.