From: martin f. krafft Date: Wed, 3 Oct 2007 14:06:12 +0000 (+0100) Subject: fix up tex syntax X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/9d232b9c2632c658aad7b691a2084ab78eae6f70?ds=sidebyside;hp=6d22782accb703f09b3c8b547a8f86ab479b0f91 fix up tex syntax --- diff --git a/.vim/after/syntax/tex.vim b/.vim/after/syntax/tex.vim index f5ccec6..b9c0f6c 100644 --- a/.vim/after/syntax/tex.vim +++ b/.vim/after/syntax/tex.vim @@ -1,12 +1,30 @@ -syn match TexMySection "^\\section{.*}" -syn match TexMySubSection "^\\subsection{.*}" -syn match TexMySubSubSection "^\\subsubsection{.*}" -syn match TexMyParagraph "^\\paragraph{.*}" -hi TexMySection ctermbg=black ctermfg=white cterm=bold term=reverse -hi TexMySubSection ctermbg=blue ctermfg=white cterm=bold term=reverse -hi TexMySubSubSection ctermbg=cyan ctermfg=black cterm=bold term=reverse -hi TexMyParagraph ctermbg=none ctermfg=blue cterm=bold term=reverse - -syn region texRefZone matchgroup=texStatement start="\\[cefp]label{" end="}\|%stopzone\>" contains=@texRefGroup -syn region texRefZone matchgroup=texStatement start="\\[cCeEfFpP]x\=ref{" end="}\|%stopzone\>" contains=@texRefGroup -syn region texMyForeign matchgroup=texStatement start="\\foreign{" end="}\|%stopzone\>" contains=@NoSpell +syn region texRefZone matchgroup=texRefZone start="\\[cefp]label{" end="}\|%stopzone\>" contains=@texRefGroup +syn region texRefZone matchgroup=texRefZone start="\\[cCeEfFpP][vr]\=ref{" end="}\|%stopzone\>" contains=@texRefGroup + +syn region texMyForeign matchgroup=texTypeStyle start="\\foreign{" end="}" contains=texMatcher,@NoSpell +syn cluster texFoldGroup add=texMyForeign +syn cluster texMatchGroup add=texMyForeign + +syn region texTodoCmd matchgroup=texTodoCmd start="\\todo{" end="}\|%stopzone\>" contains=@NoSpell +syn cluster texFoldGroup add=texTodoCmd +syn cluster texMatchGroup add=texTodoCmd +hi def link texTodoCmd texTodo + +syn match texCiteNeeded '\\citeneeded\ze:\=\>' +syn cluster texFoldGroup add=texCiteNeeded +syn cluster texMatchGroup add=texCiteNeeded +hi def link texCiteNeeded texTodo + +syn region texHighlit matchgroup=texHighlit start="\\highlit{" end="}\|%stopzone\>" contains=@texMatchGroup +syn cluster texFoldGroup add=texHighlit +syn cluster texMatchGroup add=texHighlit +hi def link texHighlit Highlit + +syn match texMySection '^\\section{.*' +syn match texMySubSection '^\\subsection{.*' +syn match texMySubSubSection '^\\subsubsection{.*' +syn match texMyParagraph '^\\paragraph{.*' +hi texMySection ctermbg=black ctermfg=white cterm=bold term=reverse +hi texMySubSection ctermbg=blue ctermfg=white cterm=bold term=reverse +hi texMySubSubSection ctermbg=cyan ctermfg=black cterm=bold term=reverse +hi texMyParagraph ctermbg=none ctermfg=blue cterm=bold term=reverse diff --git a/.vim/colors/madduck.vim b/.vim/colors/madduck.vim index f1a71bb..421aa0a 100644 --- a/.vim/colors/madduck.vim +++ b/.vim/colors/madduck.vim @@ -57,11 +57,13 @@ else hi Error ctermfg=White ctermbg=Red cterm=reverse term=reverse hi Todo ctermfg=Black ctermbg=Yellow cterm=standout term=standout - hi SpellBad ctermfg=white ctermbg=darkred cterm=none term=reverse - hi SpellCap ctermfg=darkred ctermbg=none cterm=bold term=reverse - hi SpellRare ctermfg=red ctermbg=none cterm=none term=reverse - hi SpellLocal ctermfg=white ctermbg=magenta cterm=none term=reverse + hi SpellBad ctermfg=white ctermbg=darkred cterm=none term=reverse + hi SpellCap ctermfg=darkred ctermbg=none cterm=bold term=reverse + hi SpellRare ctermfg=red ctermbg=none cterm=none term=reverse + hi SpellLocal ctermfg=white ctermbg=magenta cterm=none term=reverse + + hi Highlit ctermbg=yellow ctermfg=black cterm=none term=reverse endif -" vim:sts=8:sw=8:noet +" vim:sts=8:sw=8:ts=8:noet