Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
b325d25e
Commit
b325d25e
authored
Jun 02, 2014
by
Paul Sokolovsky
Browse files
lexer: Add another comment for somewhat obscure way __debug__ is handled.
parent
62798831
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/lexer.c
View file @
b325d25e
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment