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
3f0e2174
Commit
3f0e2174
authored
Jul 01, 2000
by
Just van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed bug in comment matching
parent
04e5330b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Mac/Tools/IDE/PyFontify.py
Mac/Tools/IDE/PyFontify.py
+3
-3
No files found.
Mac/Tools/IDE/PyFontify.py
View file @
3f0e2174
...
...
@@ -19,13 +19,13 @@ sublist is not used, hence always None.
# Many thanks for regular expression debugging & authoring are due to:
# Tim (the-incredib-ly y'rs) Peters and Cristian Tismer
# So, who owns the copyright? ;-) How about this:
# Copyright 1996-
1997
:
# Copyright 1996-
2000
:
# Mitchell S. Chapman,
# Zachary Roadhouse,
# Tim Peters,
# Just van Rossum
__version__
=
"0.3.
2
"
__version__
=
"0.3.
3
"
import
string
,
regex
...
...
@@ -86,7 +86,7 @@ for keyword in keywordsList:
keyPat = keyPat + keyword + "
\
|
"
keyPat = keyPat[:-2] + "
\
)
" + nonKeyPat
matchPat =
keyPat + "
\
|
" + comment
Pat + "
\
|
" + tripleQuotePat + "
\
|
" + quotePat
matchPat =
commentPat + "
\
|
" + key
Pat + "
\
|
" + tripleQuotePat + "
\
|
" + quotePat
matchRE = regex.compile(matchPat)
idKeyPat = "
[
\
t
]
*
[
A
-
Za
-
z_
][
A
-
Za
-
z_0
-
9.
]
*
" # Ident w. leading whitespace.
...
...
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