Hi, I'm having a problem with ref completion with multiple files project. It seems it doesn't find \input file if the \input command is not a the beginning of a line (if it is indented or there is a space before). By changing outline.py like this (removing ^ from the regex), it seems to fix the problem :
# TODO what are all the ways in which a tex file can include another? - pat = re.compile(r'^\\(@?)(include|input){(.*?)}', re.M) + pat = re.compile(r'\\(@?)(include|input){(.*?)}', re.M) contents = re.sub(pat, getFileContents, contents) I have included the diff and a minimal example. thx ! Francis
Index: trunk/vimfiles/ftplugin/latex-suite/outline.py =================================================================== --- trunk/vimfiles/ftplugin/latex-suite/outline.py (révision 1106) +++ trunk/vimfiles/ftplugin/latex-suite/outline.py (copie de travail) @@ -31,7 +31,7 @@ return '' # TODO what are all the ways in which a tex file can include another? - pat = re.compile(r'^\\(@?)(include|input){(.*?)}', re.M) + pat = re.compile(r'\\(@?)(include|input){(.*?)}', re.M) contents = re.sub(pat, getFileContents, contents) return ('%%==== FILENAME: %s' % fname) + '\n' + contents
outline_problem.tar.gz
Description: GNU Zip compressed data
------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm
_______________________________________________ Vim-latex-devel mailing list Vim-latex-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vim-latex-devel