Improve diff further
This commit is contained in:
parent
bfb692d2f7
commit
3ab6d1b937
1 changed files with 6 additions and 6 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue