feat(lib): add the language name
This commit is contained in:
parent
42dd32d184
commit
c5ee0ac070
5 changed files with 17 additions and 0 deletions
|
|
@ -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 */
|
||||
/********************************/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue