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
2f0ad742
Commit
2f0ad742
authored
Dec 07, 2011
by
Ned Deily
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #8641: Update IDLE 3 syntax coloring to recognize b".." and not u"..".
(Patch by Tal Einat)
parent
a9837d81
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
Lib/idlelib/ColorDelegator.py
Lib/idlelib/ColorDelegator.py
+4
-4
Misc/ACKS
Misc/ACKS
+1
-0
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/idlelib/ColorDelegator.py
View file @
2f0ad742
...
...
@@ -20,10 +20,10 @@ def make_pat():
# 1st 'file' colorized normal, 2nd as builtin, 3rd as string
builtin
=
r"([^.'\"\\#]\b|^)"
+
any
(
"BUILTIN"
,
builtinlist
)
+
r"\b"
comment
=
any
(
"COMMENT"
,
[
r"#[^\n]*"
])
sqstring
=
r"(\b[rR
uU
])?'[^'\\\n]*(\\.[^'\\\n]*)*'?"
dqstring
=
r'(\b[rR
uU
])?"[^"\\\n]*(\\.[^"\\\n]*)*"?'
sq3string
=
r"(\b[rR
uU
])?'''[^'\\]*((\\.|'(?!''))[^'\\]*)*(''')?"
dq3string
=
r'(\b[rR
uU
])?"""[^"\\]*((\\.|"(?!""))[^"\\]*)*(""")?'
sqstring
=
r"(\b[rR
bB
])?'[^'\\\n]*(\\.[^'\\\n]*)*'?"
dqstring
=
r'(\b[rR
bB
])?"[^"\\\n]*(\\.[^"\\\n]*)*"?'
sq3string
=
r"(\b[rR
bB
])?'''[^'\\]*((\\.|'(?!''))[^'\\]*)*(''')?"
dq3string
=
r'(\b[rR
bB
])?"""[^"\\]*((\\.|"(?!""))[^"\\]*)*(""")?'
string
=
any
(
"STRING"
,
[
sq3string
,
dq3string
,
sqstring
,
dqstring
])
return
kw
+
"|"
+
builtin
+
"|"
+
comment
+
"|"
+
string
+
\
"|"
+
any
(
"SYNC"
,
[
r"\n"
])
...
...
Misc/ACKS
View file @
2f0ad742
...
...
@@ -256,6 +256,7 @@ Hans Eckardt
Rodolpho Eckhardt
Grant Edwards
John Ehresman
Tal Einat
Eric Eisner
Andrew Eland
Julien Élie
...
...
Misc/NEWS
View file @
2f0ad742
...
...
@@ -90,6 +90,9 @@ Core and Builtins
Library
-------
- Issue #8641: Update IDLE 3 syntax coloring to recognize b".." and not u"..".
Patch by Tal Einat.
- tarfile.py: Correctly detect bzip2 compressed streams with blocksizes
other than 900k.
...
...
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