diff options
author | Damien George <damien.p.george@gmail.com> | 2016-12-22 10:32:06 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-12-22 10:32:06 +1100 |
commit | adccafb42a892df87e3ca45a8fcc01535b39b055 (patch) | |
tree | a82090e912e285be8cdbcbdbde1fca86e63253a1 /py/lexer.c | |
parent | 1b44987d0ca72fb877026fc96681f064c8fb2b2f (diff) | |
download | micropython-adccafb42a892df87e3ca45a8fcc01535b39b055.tar.gz micropython-adccafb42a892df87e3ca45a8fcc01535b39b055.zip |
tests/basics/lexer: Add a test for newline-escaping within a string.
Diffstat (limited to 'py/lexer.c')
-rw-r--r-- | py/lexer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/lexer.c b/py/lexer.c index c6ecdf1f8e..7db49de895 100644 --- a/py/lexer.c +++ b/py/lexer.c @@ -431,7 +431,7 @@ STATIC void mp_lexer_next_token_into(mp_lexer_t *lex, bool first_token) { } else { switch (c) { case MP_LEXER_EOF: break; // TODO a proper error message? - case '\n': c = MP_LEXER_EOF; break; // TODO check this works correctly (we are supposed to ignore it + case '\n': c = MP_LEXER_EOF; break; // backslash escape the newline, just ignore it case '\\': break; case '\'': break; case '"': break; |