Pass edit information into parser function
This commit is contained in:
parent
464a0e8dad
commit
0d6435e24a
6 changed files with 35 additions and 24 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#include "tree_sitter/runtime.h"
|
||||
|
||||
const ts_tree * ts_parser_parse(ts_parser *parser, ts_input input) {
|
||||
return parser->parse_fn(parser->data, input);
|
||||
const ts_tree * ts_parser_parse(ts_parser *parser, ts_input input, ts_input_edit *edit) {
|
||||
return parser->parse_fn(parser->data, input, edit);
|
||||
}
|
||||
|
||||
void ts_parser_free(ts_parser *parser) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue