Add single quoted strings and regexes to javascript grammar
This commit is contained in:
parent
6d40dcf881
commit
a2c125998e
4 changed files with 10956 additions and 10884 deletions
|
|
@ -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
|
||||
==========================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue