diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-06-02 16:09:32 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-06-02 16:35:57 +0300 |
commit | b325d25e46130b65373eeb1a5d3c2a405665f320 (patch) | |
tree | 6442cf5e1fe7147b72ab70644982920b347818a8 /py/lexer.c | |
parent | 62798831bea83f7c75810064115e7f3a65892ca5 (diff) | |
download | micropython-b325d25e46130b65373eeb1a5d3c2a405665f320.tar.gz micropython-b325d25e46130b65373eeb1a5d3c2a405665f320.zip |
lexer: Add another comment for somewhat obscure way __debug__ is handled.
Diffstat (limited to 'py/lexer.c')
-rw-r--r-- | py/lexer.c | 1 |
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; |