Revision: 1103
http://vim-latex.svn.sourceforge.net/vim-latex/?rev=1103&view=rev
Author: tmaas
Date: 2010-01-29 00:01:51 +0000 (Fri, 29 Jan 2010)
Log Message:
-----------
outline.py: \% should not start a comment
- This still leaves a buggy case behind, because \\% should start a comment. :-/
Author: Johann Felix Soden <jo...@gm...>
Bug-Debian: http://bugs.debian.org/381161
Modified Paths:
--------------
trunk/vimfiles/ftplugin/latex-suite/outline.py
Modified: trunk/vimfiles/ftplugin/latex-suite/outline.py
===================================================================
--- trunk/vimfiles/ftplugin/latex-suite/outline.py 2010-01-28 23:49:04 UTC (rev 1102)
+++ trunk/vimfiles/ftplugin/latex-suite/outline.py 2010-01-29 00:01:51 UTC (rev 1103)
@@ -41,7 +41,8 @@
def stripComments(contents):
# remove all comments except those of the form
# %%==== FILENAME: <filename.tex>
- uncomm = [re.sub('%(?!==== FILENAME: ).*', '', line) for line in contents.splitlines()]
+ # BUG: This comment right after a new paragraph is not recognized: foo\\%comment
+ uncomm = [re.sub('(?<!\\\\)%(?!==== FILENAME: ).*', '', line) for line in contents.splitlines()]
# also remove all only-whitespace lines.
nonempty = [line for line in uncomm if line.strip()]
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|