tree-sitter/spec/runtime/languages/javascript/errors.txt

29 lines
590 B
Text
Raw Normal View History

==========================================
errors in function calls
==========================================
stuff(|||);
---
(expression_statement (function_call (identifier) (ERROR '|')))
==========================================
errors in if statements
==========================================
stuff();
if (*nonsense*) {
*more-nonsense*;
}
moreStuff();
---
(program
2014-03-28 12:59:47 -07:00
(expression_statement (function_call (identifier)))
(if_statement (ERROR '*')
(statement_block (expression_statement (ERROR '*'))))
2014-03-28 12:59:47 -07:00
(expression_statement (function_call (identifier))))