Implement ts_document_symbol_name.

This commit is contained in:
Rob Rix 2015-10-28 17:13:31 -04:00
parent 63f1a618b4
commit 8143224098

View file

@ -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;