diff --git a/py/lexer.c b/py/lexer.c index 0611a727b9..6c8ac9aeed 100644 --- a/py/lexer.c +++ b/py/lexer.c @@ -128,10 +128,6 @@ STATIC bool is_tail_of_identifier(mp_lexer_t *lex) { } STATIC void next_char(mp_lexer_t *lex) { - if (lex->chr0 == MP_LEXER_EOF) { - return; - } - if (lex->chr0 == '\n') { // a new line ++lex->line;