Revert "try starting from 1"

This reverts commit 11efff2442.
This commit is contained in:
joshvera 2015-11-30 12:16:58 -05:00
parent 2dc63f2c30
commit 4cbc4b8bcf
2 changed files with 2 additions and 2 deletions

View file

@ -63,7 +63,7 @@ static inline bool ts_length_eq(TSLength len1, TSLength len2) {
}
static inline TSPoint ts_point_zero() {
return (TSPoint){ .row = 1, .column = 1 };
return (TSPoint){ .row = 0, .column = 0 };
}
static inline TSPoint ts_point_make(size_t row, size_t column) {

View file

@ -71,7 +71,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;
}