py/lexer: Don't generate string representation for period or ellipsis.

It's not needed.
pull/2876/head
Damien George 2017-02-16 20:23:41 +11:00
rodzic 0ec957d7c5
commit c264414746
1 zmienionych plików z 0 dodań i 3 usunięć

Wyświetl plik

@ -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;