Implement ts_document_symbol_name.
This commit is contained in:
parent
63f1a618b4
commit
8143224098
1 changed files with 4 additions and 0 deletions
|
|
@ -50,6 +50,10 @@ void ts_document_set_input_string(TSDocument *self, const char *text) {
|
|||
ts_document_set_input(self, ts_string_input_make(text));
|
||||
}
|
||||
|
||||
const char *ts_document_symbol_name(TSDocument *document, TSSymbol symbol) {
|
||||
return document->parser.language->symbol_names[symbol];
|
||||
}
|
||||
|
||||
void ts_document_edit(TSDocument *self, TSInputEdit edit) {
|
||||
if (!self->tree)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue