]> git.madduck.net Git - etc/vim.git/blob - .vim/after/syntax/tex.vim

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

fix up tex syntax
[etc/vim.git] / .vim / after / syntax / tex.vim
1 syn region texRefZone   matchgroup=texRefZone start="\\[cefp]label{"          end="}\|%stopzone\>" contains=@texRefGroup
2 syn region texRefZone   matchgroup=texRefZone start="\\[cCeEfFpP][vr]\=ref{"  end="}\|%stopzone\>" contains=@texRefGroup
3
4 syn region texMyForeign matchgroup=texTypeStyle start="\\foreign{" end="}" contains=texMatcher,@NoSpell
5 syn cluster texFoldGroup add=texMyForeign
6 syn cluster texMatchGroup add=texMyForeign
7
8 syn region texTodoCmd   matchgroup=texTodoCmd start="\\todo{" end="}\|%stopzone\>" contains=@NoSpell
9 syn cluster texFoldGroup add=texTodoCmd
10 syn cluster texMatchGroup add=texTodoCmd
11 hi def link texTodoCmd texTodo
12
13 syn match texCiteNeeded '\\citeneeded\ze:\=\>'
14 syn cluster texFoldGroup add=texCiteNeeded
15 syn cluster texMatchGroup add=texCiteNeeded
16 hi def link texCiteNeeded texTodo
17
18 syn region texHighlit matchgroup=texHighlit start="\\highlit{" end="}\|%stopzone\>" contains=@texMatchGroup
19 syn cluster texFoldGroup add=texHighlit
20 syn cluster texMatchGroup add=texHighlit
21 hi def link texHighlit Highlit
22
23 syn match texMySection '^\\section{.*'
24 syn match texMySubSection '^\\subsection{.*'
25 syn match texMySubSubSection '^\\subsubsection{.*'
26 syn match texMyParagraph '^\\paragraph{.*'
27 hi texMySection         ctermbg=black   ctermfg=white   cterm=bold      term=reverse
28 hi texMySubSection      ctermbg=blue    ctermfg=white   cterm=bold      term=reverse
29 hi texMySubSubSection   ctermbg=cyan    ctermfg=black   cterm=bold      term=reverse
30 hi texMyParagraph       ctermbg=none    ctermfg=blue    cterm=bold      term=reverse