From: martin f. krafft Date: Thu, 15 May 2008 14:16:32 +0000 (+0100) Subject: fix cite higlighting X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/160975673ba4de7db11cd08b413cdd537c91488e?ds=sidebyside fix cite higlighting --- diff --git a/.vim/syntax/tex.vim b/.vim/syntax/tex.vim index 0d6c541..f4c5adc 100644 --- a/.vim/syntax/tex.vim +++ b/.vim/syntax/tex.vim @@ -417,7 +417,7 @@ syn region texRefZone matchgroup=texStatement start="\\bibliography{" end="}\| syn region texRefZone matchgroup=texStatement start="\\label{" end="}\|%stopzone\>" contains=@texRefGroup syn region texRefZone matchgroup=texStatement start="\\\(page\|eq\)ref{" end="}\|%stopzone\>" contains=@texRefGroup syn region texRefZone matchgroup=texStatement start="\\v\=ref{" end="}\|%stopzone\>" contains=@texRefGroup -syn match texRefZone '\\cite\$(al)\=\%([tp]\*\=\)\=' nextgroup=texRefOption,texCite +syn match texRefZone '\\cite\%(al\)\=\%([tp]\*\=\)\=' nextgroup=texRefOption,texCite syn match texRefZone '\\citetext' nextgroup=texRefOption,texFreeCite syn region texRefOption contained matchgroup=Delimiter start='\[' end=']' contains=@texRefGroup nextgroup=texRefOption,texCite syn region texCite contained matchgroup=Delimiter start='{' end='}' contains=@texRefGroup