Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
dc224f82
Commit
dc224f82
authored
Jan 16, 2012
by
Terry Jan Reedy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#6528 None, True, False are keywords in 3.x. Patch by Roger Serwy.
parent
01b34afb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
Lib/idlelib/ColorDelegator.py
Lib/idlelib/ColorDelegator.py
+2
-1
Lib/idlelib/configDialog.py
Lib/idlelib/configDialog.py
+1
-1
No files found.
Lib/idlelib/ColorDelegator.py
View file @
dc224f82
...
...
@@ -15,7 +15,8 @@ def any(name, alternates):
def
make_pat
():
kw
=
r"\b"
+
any
(
"KEYWORD"
,
keyword
.
kwlist
)
+
r"\b"
builtinlist
=
[
str
(
name
)
for
name
in
dir
(
builtins
)
if
not
name
.
startswith
(
'_'
)]
if
not
name
.
startswith
(
'_'
)
and
\
name
not
in
keyword
.
kwlist
]
# self.file = open("file") :
# 1st 'file' colorized normal, 2nd as builtin, 3rd as string
builtin
=
r"([^.'\"\\#]\b|^)"
+
any
(
"BUILTIN"
,
builtinlist
)
+
r"\b"
...
...
Lib/idlelib/configDialog.py
View file @
dc224f82
...
...
@@ -199,7 +199,7 @@ class ConfigDialog(Toplevel):
(
"'string'"
,
'string'
),(
'
\
n
var1 = '
,
'normal'
),(
"'selected'"
,
'hilite'
),
(
'
\
n
var2 = '
,
'normal'
),(
"'found'"
,
'hit'
),
(
'
\
n
var3 = '
,
'normal'
),(
'list'
,
'builtin'
),
(
'('
,
'normal'
),
(
'None'
,
'
builtin
'
),(
')
\
n
\
n
'
,
'normal'
),
(
'None'
,
'
keyword
'
),(
')
\
n
\
n
'
,
'normal'
),
(
' error '
,
'error'
),(
' '
,
'normal'
),(
'cursor |'
,
'cursor'
),
(
'
\
n
'
,
'normal'
),(
'shell'
,
'console'
),(
' '
,
'normal'
),(
'stdout'
,
'stdout'
),
(
' '
,
'normal'
),(
'stderr'
,
'stderr'
),(
'
\
n
'
,
'normal'
))
...
...
Write
Preview
Markdown
is supported
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