Use out-of-context states when in error parse state

This commit is contained in:
Max Brunsfeld 2016-02-25 17:35:49 -08:00
parent 9b2e775b79
commit c8d7c16f87
2 changed files with 6 additions and 1 deletions

View file

@ -10,6 +10,7 @@ extern "C" {
#include "tree_sitter/runtime.h"
#define ts_lex_state_error 0
#define ts_parse_state_error ((TSStateId)-1)
#define TS_DEBUG_BUFFER_SIZE 512
typedef struct TSTree TSTree;