Add single quoted strings and regexes to javascript grammar

This commit is contained in:
Max Brunsfeld 2014-05-01 12:43:53 -07:00
parent 6d40dcf881
commit a2c125998e
4 changed files with 10956 additions and 10884 deletions

View file

@ -1,3 +1,22 @@
==========================================
parses literals
==========================================
theFunction(
100.0,
200,
/the-regex/,
'the-single-quoted-string',
"the-double-quoted-string"
);
---
(program (expression_statement (function_call
(identifier)
(number)
(number)
(regex)
(string)
(string))))
==========================================
parses multiple statements
==========================================