[Vim-latex-cvs] vimfiles/ftplugin/latex-suite folding.vim,1.7,1.8
Brought to you by:
srinathava,
tmaas
From: <sri...@us...> - 2002-12-30 09:04:43
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv8256 Modified Files: folding.vim Log Message: Bug: folds for section, subsection etc eat up an \end{document}. Solution: include '^\s*\end{document' in the endfoldpattern of the relevant things. Index: folding.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/folding.vim,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** folding.vim 20 Nov 2002 07:35:28 -0000 1.7 --- folding.vim 30 Dec 2002 09:04:39 -0000 1.8 *************** *** 4,8 **** " Version: 1.0 " Created: Tue Apr 23 05:00 PM 2002 PST ! " Last Change: Tue Nov 19 11:00 PM 2002 PST " " Description: functions to interact with Syntaxfolds.vim --- 4,8 ---- " Version: 1.0 " Created: Tue Apr 23 05:00 PM 2002 PST ! " Last Change: Mon Dec 30 01:00 AM 2002 PST " " Description: functions to interact with Syntaxfolds.vim *************** *** 163,167 **** call AddSyntaxFoldItem ( \ '^\s*\\subsubsection\W', ! \ '^\s*\\appendix\W\|^\s*\\subsubsection\W\|^\s*\\subsection\W\|^\s*\\section\W\|^\s*%%fakesection\|^\s*\\chapter\W\|^\s*\\begin{slide', \ 0, \ -1, --- 163,167 ---- call AddSyntaxFoldItem ( \ '^\s*\\subsubsection\W', ! \ '^\s*\\appendix\W\|^\s*\\subsubsection\W\|^\s*\\subsection\W\|^\s*\\section\W\|^\s*%%fakesection\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\end{document', \ 0, \ -1, *************** *** 171,175 **** call AddSyntaxFoldItem ( \ '^\s*\\subsection\W', ! \ '^\s*\\appendix\W\|^\s*\\subsection\W\|^\s*\\section\W\|^\s*%%fakesection\|^\s*\\chapter\W\|^\s*\\begin{slide', \ 0, \ -1, --- 171,175 ---- call AddSyntaxFoldItem ( \ '^\s*\\subsection\W', ! \ '^\s*\\appendix\W\|^\s*\\subsection\W\|^\s*\\section\W\|^\s*%%fakesection\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\end{document', \ 0, \ -1, *************** *** 179,183 **** call AddSyntaxFoldItem ( \ '^\s*\\section\W', ! \ '^\s*\\appendix\W\|^\s*\\section\W\|^\s*%%fakesection\|^\s*\\chapter\W\|^\s*\\begin{slide', \ 0, \ -1, --- 179,183 ---- call AddSyntaxFoldItem ( \ '^\s*\\section\W', ! \ '^\s*\\appendix\W\|^\s*\\section\W\|^\s*%%fakesection\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\end{document', \ 0, \ -1, *************** *** 187,191 **** call AddSyntaxFoldItem ( \ '^\s*%%fakesection', ! \ '^\s*\\appendix\W\|^\s\\section\W\|^\s*%%fakesection\|^\s*\\chapter\W\|^\s*\\begin{slide', \ 0, \ -1, --- 187,191 ---- call AddSyntaxFoldItem ( \ '^\s*%%fakesection', ! \ '^\s*\\appendix\W\|^\s\\section\W\|^\s*%%fakesection\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\end{document', \ 0, \ -1, *************** *** 195,199 **** call AddSyntaxFoldItem( \ '^\s*\\chapter\W', ! \ '^\s*\\appendix\W\|^\s*\\chapter\W\|^\s*\\begin{slide', \ 0, \ -1 --- 195,199 ---- call AddSyntaxFoldItem( \ '^\s*\\chapter\W', ! \ '^\s*\\appendix\W\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\end{document', \ 0, \ -1 *************** *** 203,207 **** call AddSyntaxFoldItem ( \ '^\s*\\begin{slide', ! \ '^\s*\\appendix\W\|^\s*\\chapter\W\|^\s*\\begin{slide', \ 0, \ 0 --- 203,207 ---- call AddSyntaxFoldItem ( \ '^\s*\\begin{slide', ! \ '^\s*\\appendix\W\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\end{document', \ 0, \ 0 |