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
b9c47832
Commit
b9c47832
authored
Dec 22, 2016
by
Damien George
Browse files
py/lexer: Remove unreachable code in string tokeniser.
parent
adccafb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/lexer.c
View file @
b9c47832
...
...
@@ -430,7 +430,8 @@ STATIC void mp_lexer_next_token_into(mp_lexer_t *lex, bool first_token) {
vstr_add_char
(
&
lex
->
vstr
,
'\\'
);
}
else
{
switch
(
c
)
{
case
MP_LEXER_EOF
:
break
;
// TODO a proper error message?
// note: "c" can never be MP_LEXER_EOF because next_char
// always inserts a newline at the end of the input stream
case
'\n'
:
c
=
MP_LEXER_EOF
;
break
;
// backslash escape the newline, just ignore it
case
'\\'
:
break
;
case
'\''
:
break
;
...
...
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