tree-sitter/include/tree_sitter
Max Brunsfeld 1e353381ff Don't create error node in lexer unless token is completely invalid
Before, any syntax error would cause the lexer to create an error
leaf node. This could happen even with a valid input, if the parse
stack had split and one particular version of the parse stack
failed to parse.

Now, an error leaf node is only created when the lexer cannot understand
part of the input stream at all. When a normal syntax error occurs,
the lexer just returns a token that is outside of the expected token
set, and the parser handles the unexpected token.
2016-05-26 14:15:10 -07:00
..
compiler.h Fix assorted memory leaks in test code 2016-02-05 12:23:54 -08:00
parser.h Don't create error node in lexer unless token is completely invalid 2016-05-26 14:15:10 -07:00
runtime.h Remove old error recovery code 2016-03-02 20:58:39 -08:00