summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--py/lexer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/lexer.c b/py/lexer.c
index 42f755ed98..4a7ac071b4 100644
--- a/py/lexer.c
+++ b/py/lexer.c
@@ -702,6 +702,7 @@ STATIC void mp_lexer_next_token_into(mp_lexer_t *lex, mp_token_t *tok, bool firs
for (int i = 0; i < ARRAY_SIZE(tok_kw); i++) {
if (str_strn_equal(tok_kw[i], tok->str, tok->len)) {
if (i == ARRAY_SIZE(tok_kw) - 1) {
+ // tok_kw[ARRAY_SIZE(tok_kw) - 1] == "__debug__"
tok->kind = mp_debug_value;
} else {
tok->kind = MP_TOKEN_KW_FALSE + i;