3 " Maintainer: Bram Moolenaar <Bram@vim.org>
4 " Last Change: 2005 Jun 20
6 " The Vgrindefs file is used to specify a language for vgrind
8 " Quit when a (custom) syntax file was already loaded
9 if exists("b:current_syntax")
14 syn match vgrindefsComment "^#.*"
16 " The fields that vgrind recognizes
17 syn match vgrindefsField ":ab="
18 syn match vgrindefsField ":ae="
19 syn match vgrindefsField ":pb="
20 syn match vgrindefsField ":bb="
21 syn match vgrindefsField ":be="
22 syn match vgrindefsField ":cb="
23 syn match vgrindefsField ":ce="
24 syn match vgrindefsField ":sb="
25 syn match vgrindefsField ":se="
26 syn match vgrindefsField ":lb="
27 syn match vgrindefsField ":le="
28 syn match vgrindefsField ":nc="
29 syn match vgrindefsField ":tl"
30 syn match vgrindefsField ":oc"
31 syn match vgrindefsField ":kw="
33 " Also find the ':' at the end of the line, so all ':' are highlighted
34 syn match vgrindefsField ":\\$"
35 syn match vgrindefsField ":$"
36 syn match vgrindefsField "\\$"
38 " Define the default highlighting.
39 " Only used when an item doesn't have highlighting yet
40 hi def link vgrindefsField Statement
41 hi def link vgrindefsComment Comment
43 let b:current_syntax = "vgrindefs"