tree-sitter/spec/fixtures/corpus/c/errors.txt
Max Brunsfeld 40a90b551a Allow error recovery to look all the way to the bottom of the stack
Previously, there was a bug where the first node on the stack
would never be popped
2015-11-11 16:59:41 -08:00

26 lines
575 B
Text

==========================================
errors in top-level declarations
==========================================
int int int;
int y;
---
(translation_unit
(declaration (ERROR (identifier) (identifier) (UNEXPECTED 'i') (identifier)))
(declaration (identifier) (identifier)))
==========================================
errors in compound statements
==========================================
int main() { %%% }
---
(translation_unit (function_definition
(identifier)
(function_declarator (identifier))
(compound_statement
(ERROR (UNEXPECTED '%')))))