Fix string literal parsing in the JavaScript grammar

redux
David Majda 15 years ago
parent 570658756a
commit f9ea46ef15

@ -152,8 +152,8 @@ FutureReservedWord:
Literal
: NullLiteral
/ BooleanLiteral
/ NumericLiteral { return { type: "NumericLiteral", value: $1 }; }
/ StringLiteral { return { type: "StringLiteral", value: $1[1] }; }
/ NumericLiteral { return { type: "NumericLiteral", value: $1 }; }
/ StringLiteral { return { type: "StringLiteral", value: $1 }; }
/ RegularExpressionLiteral
NullLiteral: NullToken { return { type: "NullLiteral" }; }

Loading…
Cancel
Save