diff --git a/lex.c b/lex.c index 8cd6adb..913f9cd 100644 --- a/lex.c +++ b/lex.c @@ -365,7 +365,7 @@ enum LexToken LexScanGetToken(struct LexState *Lexer, struct Value **Value) Lexer->Pos++; } - if (Lexer->Pos == Lexer->End) + if (Lexer->Pos == Lexer->End || *Lexer->Pos == '\0') return TokenEOF; ThisChar = *Lexer->Pos;