Log when ignoring an empty external token after an error
This commit is contained in:
parent
d223a81b50
commit
5aa2f4dc8c
1 changed files with 4 additions and 0 deletions
|
|
@ -452,6 +452,10 @@ static Subtree ts_parser__lex(
|
|||
(error_mode || !ts_stack_has_advanced_since_error(self->stack, version)) &&
|
||||
!external_scanner_state_changed
|
||||
) {
|
||||
LOG(
|
||||
"ignore_empty_external_token symbol:%s",
|
||||
SYM_NAME(self->language->external_scanner.symbol_map[self->lexer.data.result_symbol])
|
||||
)
|
||||
found_token = false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue