feat: allow external scanners to use the logger
Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
This commit is contained in:
parent
fec6c77da8
commit
2bb20fe2fe
5 changed files with 40 additions and 0 deletions
|
|
@ -77,6 +77,7 @@ bool tree_sitter_external_tokens_external_scanner_scan(
|
|||
|
||||
for (;;) {
|
||||
if (scanner->depth == 0) {
|
||||
lexer->log(lexer, "Found a percent string");
|
||||
lexer->result_symbol = percent_string;
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue