summaryrefslogtreecommitdiffstats
path: root/syntax/tomdoc.vim
blob: a2b2e6e0e02a1aa0f6b3457f83802def3c5af4ef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'tomdoc') == -1
  
syn keyword tomdocKeywords
      \ Returns Yields Raises Examples Signature
      \ containedin=.*Comment
      \ contained

syn match tomdocDescriptions
      \ +\s*\(Public\|Internal\|Deprecated\):+he=e-1
      \ containedin=.*Comment
      \ contained

syn match tomdocArguments
      \ +\s*[A-Za-z0-9_\-&\*:]*\(\s*- \)+he=e-3
      \ containedin=.*Comment
      \ contained

hi default link tomdocDescriptions String
hi default link tomdocKeywords String
hi default link tomdocArguments HELP

endif