columns start at 0 for sanity's sake

This commit is contained in:
joshvera 2015-11-30 17:22:47 -05:00
parent dc3818987c
commit 9da4aeaeff
2 changed files with 21 additions and 13 deletions

View file

@ -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;
}