Mercurial > vim
comparison runtime/syntax/vgrindefs.vim @ 344:7033303ea0c0 v7.0089
updated for version 7.0089
author | vimboss |
---|---|
date | Tue, 21 Jun 2005 22:37:39 +0000 |
parents | 3fc0f57ecb91 |
children | 4027cefc2aab |
comparison
equal
deleted
inserted
replaced
343:607cff4bc0cb | 344:7033303ea0c0 |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: Vgrindefs | 2 " Language: Vgrindefs |
3 " Maintainer: Bram Moolenaar <Bram@vim.org> | 3 " Maintainer: Bram Moolenaar <Bram@vim.org> |
4 " Last Change: 2001 Apr 25 | 4 " Last Change: 2005 Jun 20 |
5 | 5 |
6 " The Vgrindefs file is used to specify a language for vgrind | 6 " The Vgrindefs file is used to specify a language for vgrind |
7 | 7 |
8 " For version 5.x: Clear all syntax items | 8 " Quit when a (custom) syntax file was already loaded |
9 " For version 6.x: Quit when a syntax file was already loaded | 9 if exists("b:current_syntax") |
10 if version < 600 | |
11 syntax clear | |
12 elseif exists("b:current_syntax") | |
13 finish | 10 finish |
14 endif | 11 endif |
15 | 12 |
16 " Comments | 13 " Comments |
17 syn match vgrindefsComment "^#.*" | 14 syn match vgrindefsComment "^#.*" |
37 syn match vgrindefsField ":\\$" | 34 syn match vgrindefsField ":\\$" |
38 syn match vgrindefsField ":$" | 35 syn match vgrindefsField ":$" |
39 syn match vgrindefsField "\\$" | 36 syn match vgrindefsField "\\$" |
40 | 37 |
41 " Define the default highlighting. | 38 " Define the default highlighting. |
42 " For version 5.7 and earlier: only when not done already | 39 " Only used when an item doesn't have highlighting yet |
43 " For version 5.8 and later: only when an item doesn't have highlighting yet | 40 hi def link vgrindefsField Statement |
44 if version >= 508 || !exists("did_vgrindefs_syntax_inits") | 41 hi def link vgrindefsComment Comment |
45 if version < 508 | |
46 let did_vgrindefs_syntax_inits = 1 | |
47 command -nargs=+ HiLink hi link <args> | |
48 else | |
49 command -nargs=+ HiLink hi def link <args> | |
50 endif | |
51 | |
52 " The default methods for highlighting. Can be overridden later | |
53 HiLink vgrindefsField Statement | |
54 HiLink vgrindefsComment Comment | |
55 | |
56 delcommand HiLink | |
57 endif | |
58 | 42 |
59 let b:current_syntax = "vgrindefs" | 43 let b:current_syntax = "vgrindefs" |
60 | 44 |
61 " vim: ts=8 | 45 " vim: ts=8 |