feat(lib): add the language name

This commit is contained in:
ObserverOfTime 2024-03-17 10:53:06 +02:00 committed by Amaan Qureshi
parent 42dd32d184
commit c5ee0ac070
5 changed files with 17 additions and 0 deletions

View file

@ -1142,6 +1142,11 @@ uint32_t ts_language_version(const TSLanguage *self);
*/
TSStateId ts_language_next_state(const TSLanguage *self, TSStateId state, TSSymbol symbol);
/**
* Get the name of this language. This returns `NULL` in older parsers.
*/
const char *ts_language_name(const TSLanguage *self);
/********************************/
/* Section - Lookahead Iterator */
/********************************/