Updated patch, which now uses texMatchGroup instead of texRefGroup,
which makes more sense.

diff -u /tmp/tex.vim /usr/share/vim/vim71/syntax/tex.vim
--- /tmp/tex.vim        2007-09-27 16:02:25.000000000 +0100
+++ /usr/share/vim/vim71/syntax/tex.vim 2007-09-27 17:32:46.000000000 +0100
@@ -416,8 +416,10 @@
 syn region texRefZone          matchgroup=texStatement 
start="\\\(page\|eq\)ref{"      end="}\|%stopzone\>"    [EMAIL PROTECTED]
 syn region texRefZone          matchgroup=texStatement start="\\v\=ref{"       
        end="}\|%stopzone\>"    [EMAIL PROTECTED]
 syn match  texRefZone          '\\cite\%([tp]\*\=\)\=' 
nextgroup=texRefOption,texCite
+syn match  texRefZone          '\\citetext' nextgroup=texRefOption,texFreeCite
 syn region texRefOption        contained       matchgroup=Delimiter start='\[' 
end=']'         [EMAIL PROTECTED]   nextgroup=texRefOption,texCite
 syn region texCite     contained       matchgroup=Delimiter start='{' end='}'  
        [EMAIL PROTECTED]
+syn region texFreeCite  contained       matchgroup=Delimiter start="{"rs=s+1 
skip="\\\\\|\\[{}]" matchgroup=Delimiter end="}" [EMAIL PROTECTED]
 
 " Handle newcommand, newenvironment : {{{1
 syn match  texNewCmd                           "\\newcommand\>"                
        nextgroup=texCmdName skipwhite skipnl

-- 
 .''`.   martin f. krafft <[EMAIL PROTECTED]>
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)

Reply via email to