Add throw statements to js grammar
This commit is contained in:
parent
67590eddc7
commit
c85841364e
3 changed files with 34381 additions and 31413 deletions
|
|
@ -90,6 +90,14 @@ try {
|
|||
(finally_clause
|
||||
(statement_block (expression_statement (function_call (identifier)))))))
|
||||
|
||||
===========================================
|
||||
parses throw statements
|
||||
===========================================
|
||||
throw new Error("wtf");
|
||||
---
|
||||
(program
|
||||
(throw_statement (constructor_call (function_call (identifier) (string)))))
|
||||
|
||||
===========================================
|
||||
parses indented code after blocks
|
||||
===========================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue