comparison runtime/syntax/tex.vim @ 587:3686831cf3da v7.0166

updated for version 7.0166
author vimboss
date Sat, 10 Dec 2005 20:23:46 +0000
parents 93a822c9e3d2
children 2af8de31a3a8
comparison
equal deleted inserted replaced
586:86379a738de4 587:3686831cf3da
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: Sep 14, 2005 4 " Last Change: Dec 07, 2005
5 " Version: 30 5 " Version: 31
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,
392 392
393 " Tex Reference Zones: {{{1 393 " Tex Reference Zones: {{{1
394 syn region texZone matchgroup=texStatement start="@samp{" end="}\|%stopzone\>" contains=@texRefGroup 394 syn region texZone matchgroup=texStatement start="@samp{" end="}\|%stopzone\>" contains=@texRefGroup
395 syn region texRefZone matchgroup=texStatement start="\\nocite{" end="}\|%stopzone\>" contains=@texRefGroup 395 syn region texRefZone matchgroup=texStatement start="\\nocite{" end="}\|%stopzone\>" contains=@texRefGroup
396 syn region texRefZone matchgroup=texStatement start="\\bibliography{" end="}\|%stopzone\>" contains=@texRefGroup 396 syn region texRefZone matchgroup=texStatement start="\\bibliography{" end="}\|%stopzone\>" contains=@texRefGroup
397 syn region texRefZone matchgroup=texStatement start="\\cite\([tp]\*\=\)\={" end="}\|%stopzone\>" contains=@texRefGroup
398 syn region texRefZone matchgroup=texStatement start="\\label{" end="}\|%stopzone\>" contains=@texRefGroup 397 syn region texRefZone matchgroup=texStatement start="\\label{" end="}\|%stopzone\>" contains=@texRefGroup
399 syn region texRefZone matchgroup=texStatement start="\\\(page\|eq\)ref{" end="}\|%stopzone\>" contains=@texRefGroup 398 syn region texRefZone matchgroup=texStatement start="\\\(page\|eq\)ref{" end="}\|%stopzone\>" contains=@texRefGroup
400 syn region texRefZone matchgroup=texStatement start="\\v\=ref{" end="}\|%stopzone\>" contains=@texRefGroup 399 syn region texRefZone matchgroup=texStatement start="\\v\=ref{" end="}\|%stopzone\>" contains=@texRefGroup
400 syn match texRefZone '\\cite\%([tp]\*\=\)\=' nextgroup=texRefOption,texCite
401 syn region texRefOption contained matchgroup=Delimiter start='\[' end=']' contains=@texRefGroup nextgroup=texRefOption,texCite
402 syn region texCite contained matchgroup=Delimiter start='{' end='}' contains=@texRefGroup
401 403
402 " Handle newcommand, newenvironment : {{{1 404 " Handle newcommand, newenvironment : {{{1
403 syn match texNewCmd "\\newcommand\>" nextgroup=texCmdName skipwhite skipnl 405 syn match texNewCmd "\\newcommand\>" nextgroup=texCmdName skipwhite skipnl
404 syn region texCmdName contained matchgroup=Delimiter start="{"rs=s+1 end="}" nextgroup=texCmdArgs,texCmdBody skipwhite skipnl 406 syn region texCmdName contained matchgroup=Delimiter start="{"rs=s+1 end="}" nextgroup=texCmdArgs,texCmdBody skipwhite skipnl
405 syn region texCmdArgs contained matchgroup=Delimiter start="\["rs=s+1 end="]" nextgroup=texCmdBody skipwhite skipnl 407 syn region texCmdArgs contained matchgroup=Delimiter start="\["rs=s+1 end="]" nextgroup=texCmdBody skipwhite skipnl
463 endif 465 endif
464 endif 466 endif
465 HiLink texError Error 467 HiLink texError Error
466 endif 468 endif
467 469
470 HiLink texCite texRefZone
468 HiLink texDefCmd texDef 471 HiLink texDefCmd texDef
469 HiLink texDefName texDef 472 HiLink texDefName texDef
470 HiLink texDocType texCmdName 473 HiLink texDocType texCmdName
471 HiLink texDocTypeArgs texCmdArgs 474 HiLink texDocTypeArgs texCmdArgs
472 HiLink texInputFileOpt texCmdArgs 475 HiLink texInputFileOpt texCmdArgs