Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite
In directory usw-pr-cvs1:/tmp/cvs-serv26041
Modified Files:
folding.vim
Log Message:
Bug: folding of a section flows doesn't stop with the beginning of next
chapter.
Redefined the end fold pattern for all section environments more
consistently and completely.
Index: folding.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/folding.vim,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** folding.vim 28 Oct 2002 06:37:23 -0000 1.5
--- folding.vim 16 Nov 2002 10:14:04 -0000 1.6
***************
*** 4,8 ****
" Version: 1.0
" Created: Tue Apr 23 05:00 PM 2002 PST
! " Last Change: Sun Oct 27 10: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: Sat Nov 16 02:00 AM 2002 PST
"
" Description: functions to interact with Syntaxfolds.vim
***************
*** 163,167 ****
call AddSyntaxFoldItem (
\ '^\s*\\subsubsection\W',
! \ '^\s*%%fakesection\|^\s*\\section\|^\s*\\subsection\|^\s*\\subsubsection\|^\s*\\end{document}',
\ 0,
\ -1,
--- 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,
***************
*** 171,175 ****
call AddSyntaxFoldItem (
\ '^\s*\\subsection\W',
! \ '^\s*%%fakesection\|^\s*\\section\|^\s*\\subsection\|^\s*\\end{document}',
\ 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,
***************
*** 179,191 ****
call AddSyntaxFoldItem (
\ '^\s*\\section\W',
! \ '^\s*%%fakesection\|^\s*\\section\|^\s*\\end{document}',
\ 0,
\ -1,
\ )
" }}}
! " {{{ fakesection (for forcing a fold item manually)
call AddSyntaxFoldItem (
\ '^\s*%%fakesection',
! \ '^\s*%%fakesection\|^\s*\\section\|^\s*\\subsection\|^\s*\\subsubsection\|^\s*\\end{document}',
\ 0,
\ -1,
--- 179,191 ----
call AddSyntaxFoldItem (
\ '^\s*\\section\W',
! \ '^\s*\\section\W\|^\s*%%fakesection\|^\s*\\chapter\W\|^\s*\\begin{slide',
\ 0,
\ -1,
\ )
" }}}
! " {{{ fakesection (for forcinga fold item manually)
call AddSyntaxFoldItem (
\ '^\s*%%fakesection',
! \ '^\s\\section\W\|^\s*%%fakesection\|^\s*\\chapter\W\|^\s*\\begin{slide',
\ 0,
\ -1,
***************
*** 193,199 ****
" }}}
" {{{ chapter
! call AddSyntaxFoldItem (
! \ '^\s*\\chapter\*\={',
! \ '^\s*\\section',
\ 0,
\ -1
--- 193,199 ----
" }}}
" {{{ chapter
! call AddSyntaxFoldItem(
! \ '^\s*\\chapter\W',
! \ '^\s*\\chapter\W\|^\s*\\begin{slide',
\ 0,
\ -1
***************
*** 203,207 ****
call AddSyntaxFoldItem (
\ '^\s*\\begin{slide',
! \ '^\s*\\end{slide',
\ 0,
\ 0
--- 203,207 ----
call AddSyntaxFoldItem (
\ '^\s*\\begin{slide',
! \ '^\s*\\chapter\W\|^\s*\\begin{slide',
\ 0,
\ 0
|