From 3ab6d1b937e5106e90d0967c922765618f8896fd Mon Sep 17 00:00:00 2001 From: Andrew Helwer Date: Fri, 7 Jan 2022 10:17:53 -0500 Subject: [PATCH] Improve diff further --- lib/src/lexer.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/src/lexer.c b/lib/src/lexer.c index b90bba1b..0f94b309 100644 --- a/lib/src/lexer.c +++ b/lib/src/lexer.c @@ -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) {