Use out-of-context states when in error parse state
This commit is contained in:
parent
9b2e775b79
commit
c8d7c16f87
2 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue