diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-03-01 22:09:21 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-03-01 22:09:21 +0000 |
commit | fd2ac767ebb66adcb7ca85955f5fd40704475595 (patch) | |
tree | 16e61ca0dbcc0ffeb10a3fb5072842144ca9f89d /runtime/syntax/tex.vim | |
parent | e1438bb8d0b7a48f712458e68755ab8b66d92ace (diff) | |
download | vim-git-fd2ac767ebb66adcb7ca85955f5fd40704475595.tar.gz |
updated for version 7.0211
Diffstat (limited to 'runtime/syntax/tex.vim')
-rw-r--r-- | runtime/syntax/tex.vim | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/runtime/syntax/tex.vim b/runtime/syntax/tex.vim index 57286307a..2bc6045e9 100644 --- a/runtime/syntax/tex.vim +++ b/runtime/syntax/tex.vim @@ -1,8 +1,8 @@ " Vim syntax file " Language: TeX " Maintainer: Dr. Charles E. Campbell, Jr. <NdrchipO@ScampbellPfamily.AbizM> -" Last Change: Dec 07, 2005 -" Version: 31 +" Last Change: Feb 28, 2006 +" Version: 32 " URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax " " Notes: {{{1 @@ -372,7 +372,14 @@ if b:extfname == "dtx" syn match texComment "\^\^A.*$" contains=@texCommentGroup syn match texComment "^%\+" contains=@texCommentGroup else - syn match texComment "%.*$" contains=@texCommentGroup + if g:tex_fold_enabled + " allows syntax-folding of 2 or more contiguous comment lines + " single-line comments are not folded + syn match texComment "%.*$" contains=@texCommentGroup + syn region texComment start="^\zs\s*%.*\_s*%" skip="^\s*%" end='^\ze\s*[^%]' fold + else + syn match texComment "%.*$" contains=@texCommentGroup + endif endif " Separate lines used for verb` and verb# so that the end conditions {{{1 |