[Vim-latex-cvs] vimfiles/ftplugin/latex-suite folding.vim,1.6,1.7
Brought to you by:
srinathava,
tmaas
From: <sri...@us...> - 2002-11-20 07:35:31
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv9614 Modified Files: folding.vim Log Message: Bug: an \appendix after a \section gets folded in with it. Make section folds end also with an \appendix\W line. When will this all end? There could presumably be hundreds of other things which can end a section? Is there a _correct_ way to do this? Index: folding.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/folding.vim,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** folding.vim 16 Nov 2002 10:14:04 -0000 1.6 --- folding.vim 20 Nov 2002 07:35:28 -0000 1.7 *************** *** 4,8 **** " Version: 1.0 " Created: Tue Apr 23 05:00 PM 2002 PST ! " Last Change: Sat Nov 16 02:00 AM 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: Tue Nov 19 11:00 PM 2002 PST " " Description: functions to interact with Syntaxfolds.vim *************** *** 163,167 **** call AddSyntaxFoldItem ( \ '^\s*\\subsubsection\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', \ 0, \ -1, *************** *** 171,175 **** call AddSyntaxFoldItem ( \ '^\s*\\subsection\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', \ 0, \ -1, *************** *** 179,183 **** call AddSyntaxFoldItem ( \ '^\s*\\section\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', \ 0, \ -1, *************** *** 187,191 **** call AddSyntaxFoldItem ( \ '^\s*%%fakesection', ! \ '^\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', \ 0, \ -1, *************** *** 195,199 **** call AddSyntaxFoldItem( \ '^\s*\\chapter\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', \ 0, \ -1 *************** *** 203,207 **** call AddSyntaxFoldItem ( \ '^\s*\\begin{slide', ! \ '^\s*\\chapter\W\|^\s*\\begin{slide', \ 0, \ 0 --- 203,207 ---- call AddSyntaxFoldItem ( \ '^\s*\\begin{slide', ! \ '^\s*\\appendix\W\|^\s*\\chapter\W\|^\s*\\begin{slide', \ 0, \ 0 |