Skip to content

Commit 6630363

Browse files
committed
allowing quoted strings within object assignment, a in JS and JSON
1 parent 9dc932e commit 6630363

File tree

4 files changed

+705
-695
lines changed

4 files changed

+705
-695
lines changed

lib/coffee_script/grammar.y

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ rule
121121
# Assignment within an object literal.
122122
AssignObj:
123123
IDENTIFIER ":" Expression { result = AssignNode.new(val[0], val[2], :object) }
124+
| STRING ":" Expression { result = AssignNode.new(val[0], val[2], :object) }
124125
| Comment { result = val[0] }
125126
;
126127

0 commit comments

Comments
 (0)