blob: a194c108cb2f56169018e87779c849da34fba188 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim syntax file
2" Language: Vgrindefs
Christian Brabandte978b452023-08-13 10:33:05 +02003" Maintainer: The Vim Project <https://github.com/vim/vim>
4" Last Change: 2023 Aug 10
5" Former Maintainer: Bram Moolenaar <Bram@vim.org>
Bram Moolenaar071d4272004-06-13 20:20:40 +00006
7" The Vgrindefs file is used to specify a language for vgrind
8
Bram Moolenaard857f0e2005-06-21 22:37:39 +00009" Quit when a (custom) syntax file was already loaded
10if exists("b:current_syntax")
Bram Moolenaar071d4272004-06-13 20:20:40 +000011 finish
12endif
13
14" Comments
15syn match vgrindefsComment "^#.*"
16
17" The fields that vgrind recognizes
18syn match vgrindefsField ":ab="
19syn match vgrindefsField ":ae="
20syn match vgrindefsField ":pb="
21syn match vgrindefsField ":bb="
22syn match vgrindefsField ":be="
23syn match vgrindefsField ":cb="
24syn match vgrindefsField ":ce="
25syn match vgrindefsField ":sb="
26syn match vgrindefsField ":se="
27syn match vgrindefsField ":lb="
28syn match vgrindefsField ":le="
29syn match vgrindefsField ":nc="
30syn match vgrindefsField ":tl"
31syn match vgrindefsField ":oc"
32syn match vgrindefsField ":kw="
33
34" Also find the ':' at the end of the line, so all ':' are highlighted
35syn match vgrindefsField ":\\$"
36syn match vgrindefsField ":$"
37syn match vgrindefsField "\\$"
38
39" Define the default highlighting.
Bram Moolenaard857f0e2005-06-21 22:37:39 +000040" Only used when an item doesn't have highlighting yet
41hi def link vgrindefsField Statement
42hi def link vgrindefsComment Comment
Bram Moolenaar071d4272004-06-13 20:20:40 +000043
44let b:current_syntax = "vgrindefs"
45
46" vim: ts=8