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

It's not needed.
This commit is contained in:
Damien George 2017-02-16 20:23:41 +11:00
parent 0ec957d7c5
commit c264414746
1 changed files with 0 additions and 3 deletions

View File

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