diff --git a/compiler/lex.c b/compiler/lex.c index fe7e669..ec7aebc 100644 --- a/compiler/lex.c +++ b/compiler/lex.c @@ -464,6 +464,7 @@ lex_scan(LexState *ls) if (peek(ls) == '=') { token.id = T_NOTEQUAL; ++ls->fwd; + ++ls->cur_loc.column; } else { token.id = T_EXCLAMATION; } @@ -488,6 +489,7 @@ lex_scan(LexState *ls) if (peek(ls) == '=') { token.id = T_LOGICEQUAL; ++ls->fwd; + ++ls->cur_loc.column; } else { token.id = T_EQUAL; }