feat: implement a cache for get_column
This commit is contained in:
parent
a767f89967
commit
aaba7cd2f9
3 changed files with 84 additions and 22 deletions
|
|
@ -529,6 +529,7 @@ static Subtree ts_parser__lex(
|
|||
for (;;) {
|
||||
bool found_token = false;
|
||||
Length current_position = self->lexer.current_position;
|
||||
ColumnData column_data = self->lexer.column_data;
|
||||
|
||||
if (lex_mode.external_lex_state != 0) {
|
||||
LOG(
|
||||
|
|
@ -582,6 +583,7 @@ static Subtree ts_parser__lex(
|
|||
}
|
||||
|
||||
ts_lexer_reset(&self->lexer, current_position);
|
||||
self->lexer.column_data = column_data;
|
||||
}
|
||||
|
||||
LOG(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue