comparison runtime/syntax/tex.vim @ 699:2af8de31a3a8

updated for version 7.0211
author vimboss
date Wed, 01 Mar 2006 22:09:21 +0000
parents 3686831cf3da
children 08360213aa1d
comparison
equal deleted inserted replaced
698:e402b0af6083 699:2af8de31a3a8
1 " Vim syntax file 1 " Vim syntax file
2 " Language: TeX 2 " Language: TeX
3 " Maintainer: Dr. Charles E. Campbell, Jr. <NdrchipO@ScampbellPfamily.AbizM> 3 " Maintainer: Dr. Charles E. Campbell, Jr. <NdrchipO@ScampbellPfamily.AbizM>
4 " Last Change: Dec 07, 2005 4 " Last Change: Feb 28, 2006
5 " Version: 31 5 " Version: 32
6 " URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax 6 " URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
7 " 7 "
8 " Notes: {{{1 8 " Notes: {{{1
9 " 9 "
10 " 1. If you have a \begin{verbatim} that appears to overrun its boundaries, 10 " 1. If you have a \begin{verbatim} that appears to overrun its boundaries,
370 syn case match 370 syn case match
371 if b:extfname == "dtx" 371 if b:extfname == "dtx"
372 syn match texComment "\^\^A.*$" contains=@texCommentGroup 372 syn match texComment "\^\^A.*$" contains=@texCommentGroup
373 syn match texComment "^%\+" contains=@texCommentGroup 373 syn match texComment "^%\+" contains=@texCommentGroup
374 else 374 else
375 syn match texComment "%.*$" contains=@texCommentGroup 375 if g:tex_fold_enabled
376 " allows syntax-folding of 2 or more contiguous comment lines
377 " single-line comments are not folded
378 syn match texComment "%.*$" contains=@texCommentGroup
379 syn region texComment start="^\zs\s*%.*\_s*%" skip="^\s*%" end='^\ze\s*[^%]' fold
380 else
381 syn match texComment "%.*$" contains=@texCommentGroup
382 endif
376 endif 383 endif
377 384
378 " Separate lines used for verb` and verb# so that the end conditions {{{1 385 " Separate lines used for verb` and verb# so that the end conditions {{{1
379 " will appropriately terminate. Ideally vim would let me save a 386 " will appropriately terminate. Ideally vim would let me save a
380 " character from the start pattern and re-use it in the end-pattern. 387 " character from the start pattern and re-use it in the end-pattern.