From 9b2e775b794631cf7659c84ad1f2337ca6e04090 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Sat, 20 Feb 2016 14:19:15 -0800 Subject: [PATCH] Store out-of-context states in the language struct --- include/tree_sitter/parser.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/tree_sitter/parser.h b/include/tree_sitter/parser.h index 09c09c54..bb2f31b6 100644 --- a/include/tree_sitter/parser.h +++ b/include/tree_sitter/parser.h @@ -94,6 +94,7 @@ struct TSLanguage { const unsigned short *in_progress_symbol_table; const TSInProgressSymbolEntry *in_progress_symbols; const TSStateId *lex_states; + const TSStateId *out_of_context_states; TSTree *(*lex_fn)(TSLexer *, TSStateId, bool); }; @@ -196,6 +197,7 @@ enum { .parse_actions = ts_parse_actions, \ .in_progress_symbol_table = ts_in_progress_symbol_table, \ .in_progress_symbols = ts_in_progress_symbols, \ + .out_of_context_states = ts_out_of_context_states, \ .lex_states = ts_lex_states, \ .symbol_names = ts_symbol_names, \ .lex_fn = ts_lex, \