Add ts_parser_set_enabled API

This commit is contained in:
Max Brunsfeld 2018-05-16 17:42:38 -07:00
parent 39c3de3fc8
commit 1fece241aa
3 changed files with 76 additions and 1 deletions

View file

@ -86,6 +86,8 @@ void ts_parser_print_dot_graphs(TSParser *, FILE *);
void ts_parser_halt_on_error(TSParser *, bool);
TSTree *ts_parser_parse(TSParser *, const TSTree *, TSInput);
TSTree *ts_parser_parse_string(TSParser *, const TSTree *, const char *, uint32_t);
bool ts_parser_enabled(TSParser *);
void ts_parser_set_enabled(TSParser *, bool);
TSTree *ts_tree_copy(const TSTree *);
void ts_tree_delete(TSTree *);