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

15 lines
352 B
Text
Raw Normal View History

==========================================
recovers from errors in if statements
==========================================
stuff();
if (*nonsense*) {
*more-nonsense*;
}
moreStuff();
---
(program
(statement (function_call (identifier)))
(if_statement (ERROR)
(statement_block (ERROR)))
(statement (function_call (identifier))))