Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
c2644147
Commit
c2644147
authored
Feb 16, 2017
by
Damien George
Browse files
py/lexer: Don't generate string representation for period or ellipsis.
It's not needed.
parent
0ec957d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/lexer.c
View file @
c2644147
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment