Improve diff further
@@ -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) {
