Improve diff further

This commit is contained in:
Andrew Helwer 2022-01-07 10:17:53 -05:00
parent bfb692d2f7
commit 3ab6d1b937

View file

@ -152,6 +152,12 @@ static void ts_lexer_goto(Lexer *self, Length position) {
}
}
// Advance without logging.
static void ts_lexer__advance_no_log(Lexer *self, bool skip) {
if (!self->chunk) return;
ts_lexer__do_advance(self, skip);
}
// Advance to the next character in the source code, retrieving a new
// chunk of source code if needed.
static void ts_lexer__advance(TSLexer *_self, bool skip) {
@ -167,12 +173,6 @@ static void ts_lexer__advance(TSLexer *_self, bool skip) {
ts_lexer__do_advance(self, skip);
}
// Advance without logging.
static void ts_lexer__advance_no_log(Lexer *self, bool skip) {
if (!self->chunk) return;
ts_lexer__do_advance(self, skip);
}
// Intended to be called only from functions below that control logging.
static void ts_lexer__do_advance(Lexer *self, bool skip) {
if (self->lookahead_size) {