Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite
In directory sc8-pr-cvs1:/tmp/cvs-serv16897
Modified Files:
Tag: release-1-5
folding.vim
Log Message:
backporting changes made from main trunk.
Index: folding.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/folding.vim,v
retrieving revision 1.12
retrieving revision 1.12.2.1
diff -C2 -d -r1.12 -r1.12.2.1
*** folding.vim 16 Sep 2003 22:50:30 -0000 1.12
--- folding.vim 25 Nov 2003 20:34:54 -0000 1.12.2.1
***************
*** 2,6 ****
" File: folding.vim
" Author: Srinath Avadhanula
! " Version: 1.0
" Created: Tue Apr 23 05:00 PM 2002 PST
"
--- 2,6 ----
" File: folding.vim
" Author: Srinath Avadhanula
! " Version: $Id$
" Created: Tue Apr 23 05:00 PM 2002 PST
"
***************
*** 176,179 ****
--- 176,187 ----
\ )
" }}}
+ " {{{ thebibliography
+ call AddSyntaxFoldItem (
+ \ '^\s*\\begin{thebibliography}',
+ \ '^\s*\\end{thebibliography}',
+ \ 0,
+ \ 0
+ \ )
+ " }}}
" {{{ table
call AddSyntaxFoldItem (
***************
*** 200,203 ****
--- 208,212 ----
\ )
" }}}
+ " {{{ gather
call AddSyntaxFoldItem (
\ '^\s*\\begin{gather',
***************
*** 236,240 ****
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,
--- 245,249 ----
call AddSyntaxFoldItem (
\ '^\s*\\subsection\W',
! \ '^\s*\\appendix\W\|^\s*\\subsection\W\|^\s*\\section\W\|^\s*%%fakesection\|^\s*\\bibliography\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\begin{thebibliography\|^\s*\\end{document',
\ 0,
\ -1,
***************
*** 244,256 ****
call AddSyntaxFoldItem (
\ '^\s*\\section\W',
! \ '^\s*\\appendix\W\|^\s*\\section\W\|^\s*%%fakesection\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\end{document',
\ 0,
\ -1,
\ )
" }}}
! " {{{ fakesection (for forcinga fold item manually)
call AddSyntaxFoldItem (
\ '^\s*%%fakesection',
! \ '^\s*\\appendix\W\|^\s\\section\W\|^\s*%%fakesection\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\end{document',
\ 0,
\ -1,
--- 253,265 ----
call AddSyntaxFoldItem (
\ '^\s*\\section\W',
! \ '^\s*\\appendix\W\|^\s*\\section\W\|^\s*\\bibliography\|^\s*%%fakesection\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\begin{thebibliography\|^\s*\\end{document',
\ 0,
\ -1,
\ )
" }}}
! " {{{ fakesection (for forcing a fold item manually)
call AddSyntaxFoldItem (
\ '^\s*%%fakesection',
! \ '^\s*\\appendix\W\|^\s*\\section\W\|^\s*%%fakesection\|^\s*\\bibliography\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\begin{thebibliography\|^\s*\\end{document',
\ 0,
\ -1,
***************
*** 260,264 ****
call AddSyntaxFoldItem(
\ '^\s*\\chapter\W',
! \ '^\s*\\appendix\W\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\end{document',
\ 0,
\ -1
--- 269,273 ----
call AddSyntaxFoldItem(
\ '^\s*\\chapter\W',
! \ '^\s*\\appendix\W\|^\s*\\chapter\W\|^\s*\\bibliography\|^\s*\\begin{slide\|^\s*\\begin{thebibliography\|^\s*\\end{document',
\ 0,
\ -1
***************
*** 282,286 ****
function! TexFoldTextFunction()
if getline(v:foldstart) =~ '^\s*\\begin{'
! let header = matchstr(getline(v:foldstart), '^\s*\\begin{\zs\(figure\|table\|equation\|eqnarray\|gather\|align\|abstract\|keywords\)[^}]*\ze}')
let caption = ''
--- 291,295 ----
function! TexFoldTextFunction()
if getline(v:foldstart) =~ '^\s*\\begin{'
! let header = matchstr(getline(v:foldstart), '^\s*\\begin{\zs\(figure\|sidewaysfigure\|table\|equation\|eqnarray\|gather\|align\|abstract\|keywords\|thebibliography\)[^}]*\ze}')
let caption = ''
|