summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-03-23 16:40:00 +1100
committerDamien George <damien.p.george@gmail.com>2017-03-23 16:40:24 +1100
commitf64a3e296e1c696b1c8a09bac68f7e075f419c8b (patch)
treef683128d13f66160aea5f2f599f64a4b2f0cd2a6
parent60656eaea41df16557fbbdb51d9b8fc2cf7662a1 (diff)
downloadmicropython-f64a3e296e1c696b1c8a09bac68f7e075f419c8b.tar.gz
micropython-f64a3e296e1c696b1c8a09bac68f7e075f419c8b.zip
py/lexer: Remove obsolete comment, since lexer can now raise exceptions.
-rw-r--r--py/lexer.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/py/lexer.c b/py/lexer.c
index fadaee6f35..a91f5c9c8b 100644
--- a/py/lexer.c
+++ b/py/lexer.c
@@ -159,7 +159,6 @@ STATIC void next_char(mp_lexer_t *lex) {
STATIC void indent_push(mp_lexer_t *lex, size_t indent) {
if (lex->num_indent_level >= lex->alloc_indent_level) {
- // TODO use m_renew_maybe and somehow indicate an error if it fails... probably by using MP_TOKEN_MEMORY_ERROR
lex->indent_level = m_renew(uint16_t, lex->indent_level, lex->alloc_indent_level, lex->alloc_indent_level + MICROPY_ALLOC_LEXEL_INDENT_INC);
lex->alloc_indent_level += MICROPY_ALLOC_LEXEL_INDENT_INC;
}