[Moin-devel] CVS: MoinMoin/parser wiki.py,1.81,1.82
J?rgen Hermann
jhermann at users.sourceforge.net
Tue Mar 12 18:50:07 EST 2002
Update of /cvsroot/moin/MoinMoin/parser
In directory usw-pr-cvs1:/tmp/cvs-serv4492/parser
Modified Files:
wiki.py
Log Message:
Accept normal bangpaths when checking for syntax hilighting
Index: wiki.py
===================================================================
RCS file: /cvsroot/moin/MoinMoin/parser/wiki.py,v
retrieving revision 1.81
retrieving revision 1.82
diff -C2 -r1.81 -r1.82
*** wiki.py 20 Feb 2002 19:32:34 -0000 1.81
--- wiki.py 13 Mar 2002 02:49:45 -0000 1.82
***************
*** 795,801 ****
# send rest of line through regex machinery
line = line[endpos+3:]
! elif string.strip(line) == "#!python":
self.in_pre = 2
self.colorize_lines = []
continue
else:
--- 795,803 ----
# send rest of line through regex machinery
line = line[endpos+3:]
! elif string.strip(line)[:2] == "#!" and string.find(line, 'python') > 0:
self.in_pre = 2
self.colorize_lines = []
+ if string.strip(line) != "#!python":
+ self.colorize_lines.append(line)
continue
else:
More information about the Moin-devel
mailing list