tree-sitter/spec/runtime/languages/arithmetic/errors.txt
Max Brunsfeld 779bf0d745 Don't store tree's hidden children in a separate array
Just mark hidden trees as such, and skip them when
pretty-printing a tree
2014-07-17 13:36:53 -07:00

15 lines
443 B
Text

=====================================================
recovers from errors at the top level
=====================================================
x * * y
---
(expression (variable) (ERROR '*'))
=====================================================
recovers from errors inside parenthesized expressions
=====================================================
x + (y * + z) * 5
---
(sum
(variable)
(product (group (ERROR '+')) (number)))