diff options
Diffstat (limited to 'py')
-rw-r--r-- | py/lexer.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/py/lexer.c b/py/lexer.c index 33af21e9c3..d89322ed7f 100644 --- a/py/lexer.c +++ b/py/lexer.c @@ -574,12 +574,9 @@ STATIC void mp_lexer_next_token_into(mp_lexer_t *lex, bool first_token) { // special handling for . and ... operators, because .. is not a valid operator // get first char - vstr_add_char(&lex->vstr, '.'); next_char(lex); if (is_char_and(lex, '.', '.')) { - vstr_add_char(&lex->vstr, '.'); - vstr_add_char(&lex->vstr, '.'); next_char(lex); next_char(lex); lex->tok_kind = MP_TOKEN_ELLIPSIS; |