Handle rename symbols in ts_language APIs
This commit is contained in:
parent
20b664969e
commit
afb499bf2e
6 changed files with 84 additions and 11 deletions
|
|
@ -71,6 +71,7 @@ typedef union {
|
|||
typedef struct TSLanguage {
|
||||
uint32_t version;
|
||||
uint32_t symbol_count;
|
||||
uint32_t rename_symbol_count;
|
||||
uint32_t token_count;
|
||||
uint32_t external_token_count;
|
||||
const char **symbol_names;
|
||||
|
|
@ -173,6 +174,7 @@ typedef struct TSLanguage {
|
|||
static TSLanguage language = { \
|
||||
.version = LANGUAGE_VERSION, \
|
||||
.symbol_count = SYMBOL_COUNT, \
|
||||
.rename_symbol_count = RENAME_SYMBOL_COUNT, \
|
||||
.token_count = TOKEN_COUNT, \
|
||||
.symbol_metadata = ts_symbol_metadata, \
|
||||
.parse_table = (const unsigned short *)ts_parse_table, \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue