diff options
author | Just van Rossum <just@lettererror.com> | 2000-07-01 14:30:08 (GMT) |
---|---|---|
committer | Just van Rossum <just@lettererror.com> | 2000-07-01 14:30:08 (GMT) |
commit | ed2ed9483f7ca64aaafd6628fc309fb9396a812f (patch) | |
tree | 24a77b8c0586d4e36d2126aa2ed3ae08a753070f /Mac | |
parent | b58e6b10b6165ca0a3ebfa99201f5272a7c01854 (diff) | |
download | cpython-ed2ed9483f7ca64aaafd6628fc309fb9396a812f.zip cpython-ed2ed9483f7ca64aaafd6628fc309fb9396a812f.tar.gz cpython-ed2ed9483f7ca64aaafd6628fc309fb9396a812f.tar.bz2 |
fixed bug in comment matching
Diffstat (limited to 'Mac')
-rw-r--r-- | Mac/Tools/IDE/PyFontify.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Mac/Tools/IDE/PyFontify.py b/Mac/Tools/IDE/PyFontify.py index d60456c..02de08e 100644 --- a/Mac/Tools/IDE/PyFontify.py +++ b/Mac/Tools/IDE/PyFontify.py @@ -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 + "\|" + commentPat + "\|" + tripleQuotePat + "\|" + quotePat +matchPat = commentPat + "\|" + keyPat + "\|" + tripleQuotePat + "\|" + quotePat matchRE = regex.compile(matchPat) idKeyPat = "[ \t]*[A-Za-z_][A-Za-z_0-9.]*" # Ident w. leading whitespace. |