]> 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:

check in mediawiki syntax/ftplugin from wikipedia
[etc/vim.git] / .vim / after / syntax / tex.vim
1 syn region texRefZone   matchgroup=texRefZone start="\\[acefmptl]label{"          end="}\|%stopzone\>" contains=@texRefGroup
2 syn region texRefZone   matchgroup=texRefZone start="\\[aAcCeEfFmMpPtTlL][rvx]\=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 texMyTTerm matchgroup=texTypeStyle start="\\tterm{" end="}" contains=texMatcher,@NoSpell
9 syn cluster texFoldGroup add=texMyTTerm
10 syn cluster texMatchGroup add=texMyTTerm
11
12 syn region texTodoCmd   matchgroup=texTodoCmd start="\\todo{" end="}\|%stopzone\>" contains=@texMatchGroup,@NoSpell,texMatcher
13 syn cluster texFoldGroup add=texTodoCmd
14 syn cluster texMatchGroup add=texTodoCmd
15 hi def link texTodoCmd texTodo
16
17 syn match texCiteNeeded '\\citeneeded\ze:\=\>'
18 syn cluster texFoldGroup add=texCiteNeeded
19 syn cluster texMatchGroup add=texCiteNeeded
20 hi def link texCiteNeeded texTodo
21
22 syn region texHighlit matchgroup=texHighlit start="\\highlit{" end="}\|%stopzone\>" contains=@texMatchGroup
23 syn cluster texFoldGroup add=texHighlit
24 syn cluster texMatchGroup add=texHighlit
25 hi def link texHighlit Highlit
26
27 syn region texDLMsg matchgroup=texDLMsg start="\\d[lp]msg{" end="}\|%stopzone\>" contains=@NoSpell
28 syn cluster texFoldGroup add=texDLMsg
29 syn cluster texMatchGroup add=texDLMsg
30
31 syn match texMySection '^\\section{.*'
32 syn match texMySubSection '^\\subsection{.*'
33 syn match texMySubSubSection '^\\subsubsection{.*'
34 syn match texMyParagraph '^\\paragraph{.*'
35 hi texMySection         ctermbg=gray    ctermfg=white   cterm=bold      term=reverse
36 hi texMySubSection      ctermbg=cyan    ctermfg=black   cterm=none      term=reverse
37 hi texMySubSubSection   ctermbg=none    ctermfg=blue    cterm=bold      term=reverse
38 hi texMyParagraph       ctermbg=none    ctermfg=black   cterm=bold      term=reverse