Call external scanner functions when lexing
This commit is contained in:
parent
c966af0412
commit
0f8e130687
12 changed files with 164 additions and 34 deletions
|
|
@ -49,6 +49,12 @@ static inline TSStateId ts_language_next_state(const TSLanguage *self,
|
|||
}
|
||||
}
|
||||
|
||||
static inline const bool *
|
||||
ts_language_enabled_external_tokens(const TSLanguage *self,
|
||||
unsigned external_scanner_state) {
|
||||
return self->external_token_lists + self->external_token_count * external_scanner_state;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue