Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ed2ed94

Browse files
author
Just van Rossum
committed
fixed bug in comment matching
1 parent b58e6b1 commit ed2ed94

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Mac/Tools/IDE/PyFontify.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
# Many thanks for regular expression debugging & authoring are due to:
2020
# Tim (the-incredib-ly y'rs) Peters and Cristian Tismer
2121
# So, who owns the copyright? ;-) How about this:
22-
# Copyright 1996-1997:
22+
# Copyright 1996-2000:
2323
# Mitchell S. Chapman,
2424
# Zachary Roadhouse,
2525
# Tim Peters,
2626
# Just van Rossum
2727

28-
__version__ = "0.3.2"
28+
__version__ = "0.3.3"
2929

3030
import string, regex
3131

@@ -86,7 +86,7 @@ def replace(where, what, with):
8686
keyPat = keyPat + keyword + "\|"
8787
keyPat = keyPat[:-2] + "\)" + nonKeyPat
8888

89-
matchPat = keyPat + "\|" + commentPat + "\|" + tripleQuotePat + "\|" + quotePat
89+
matchPat = commentPat + "\|" + keyPat + "\|" + tripleQuotePat + "\|" + quotePat
9090
matchRE = regex.compile(matchPat)
9191

9292
idKeyPat = "[ \t]*[A-Za-z_][A-Za-z_0-9.]*" # Ident w. leading whitespace.

0 commit comments

Comments
 (0)