Add comments to javascript grammar

This commit is contained in:
Max Brunsfeld 2014-04-24 13:22:23 -07:00
parent c2abfd2d03
commit 68c26a06b1
2 changed files with 12 additions and 1 deletions

View file

@ -59,4 +59,13 @@ print(object[propertyName()]);
(identifier)
(property_access (identifier) (function_call (identifier))))))
==========================================
parses comments
==========================================
// this is another comment
stuff(); // this is a comment
---
(program
(comment)
(expression_statement (function_call (identifier)))
(comment))