Rename ts_document_{set_text,set_input_string}
Because next I'll add a more general 'set_input' method
This commit is contained in:
parent
c43ec90dad
commit
21c0f51b84
5 changed files with 24 additions and 24 deletions
|
|
@ -21,7 +21,7 @@ void ts_document_set_parser(ts_document *document, ts_parse_config config) {
|
|||
document->symbol_names = config.symbol_names;
|
||||
}
|
||||
|
||||
void ts_document_set_text(ts_document *document, const char *text) {
|
||||
void ts_document_set_input_string(ts_document *document, const char *text) {
|
||||
const ts_tree * result = document->parse_fn(text);
|
||||
document->tree = result;
|
||||
document->errors = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue