Skip to content

Commit b325d25

Browse files
committed
lexer: Add another comment for somewhat obscure way __debug__ is handled.
1 parent 6279883 commit b325d25

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

py/lexer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,7 @@ STATIC void mp_lexer_next_token_into(mp_lexer_t *lex, mp_token_t *tok, bool firs
702702
for (int i = 0; i < ARRAY_SIZE(tok_kw); i++) {
703703
if (str_strn_equal(tok_kw[i], tok->str, tok->len)) {
704704
if (i == ARRAY_SIZE(tok_kw) - 1) {
705+
// tok_kw[ARRAY_SIZE(tok_kw) - 1] == "__debug__"
705706
tok->kind = mp_debug_value;
706707
} else {
707708
tok->kind = MP_TOKEN_KW_FALSE + i;

0 commit comments

Comments
 (0)