columns start at 0 for sanity's sake
This commit is contained in:
parent
dc3818987c
commit
9da4aeaeff
2 changed files with 21 additions and 13 deletions
|
|
@ -69,7 +69,7 @@ static bool ts_lexer__advance(TSLexer *self, TSStateId state) {
|
|||
|
||||
if (self->lookahead == '\n') {
|
||||
self->current_point.row += 1;
|
||||
self->current_point.column = 1;
|
||||
self->current_point.column = 0;
|
||||
} else {
|
||||
self->current_point.column += 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue