7
|
1 " Vim syntax file
|
|
2 " Language: PPD (PostScript printer description) file
|
|
3 " Maintainer: Bjoern Jacke <bjacke@suse.de>
|
|
4 " Last Change: 2001-10-06
|
|
5
|
|
6 " For version 5.x: Clear all syntax items
|
|
7 " For version 6.x: Quit when a syntax file was already loaded
|
|
8 if version < 600
|
|
9 syntax clear
|
|
10 elseif exists("b:current_syntax")
|
|
11 finish
|
|
12 endif
|
|
13
|
|
14
|
|
15 syn match ppdComment "^\*%.*"
|
|
16 syn match ppdDef "\*[a-zA-Z0-9]\+"
|
|
17 syn match ppdDefine "\*[a-zA-Z0-9\-_]\+:"
|
|
18 syn match ppdUI "\*[a-zA-Z]*\(Open\|Close\)UI"
|
|
19 syn match ppdUIGroup "\*[a-zA-Z]*\(Open\|Close\)Group"
|
|
20 syn match ppdGUIText "/.*:"
|
|
21 syn match ppdContraints "^*UIConstraints:"
|
|
22
|
|
23 " Define the default highlighting.
|
|
24 " For version 5.7 and earlier: only when not done already
|
|
25 " For version 5.8 and later: only when an item doesn't have highlighting yet
|
|
26 if version >= 508 || !exists("did_ahdl_syn_inits")
|
|
27 if version < 508
|
|
28 let did_ahdl_syn_inits = 1
|
|
29 command -nargs=+ HiLink hi link <args>
|
|
30 else
|
|
31 command -nargs=+ HiLink hi def link <args>
|
|
32 endif
|
|
33
|
|
34
|
|
35 HiLink ppdComment Comment
|
|
36 HiLink ppdDefine Statement
|
|
37 HiLink ppdUI Function
|
|
38 HiLink ppdUIGroup Function
|
|
39 HiLink ppdDef String
|
|
40 HiLink ppdGUIText Type
|
|
41 HiLink ppdContraints Special
|
|
42
|
|
43 delcommand HiLink
|
|
44 endif
|
|
45
|
|
46 let b:current_syntax = "ppd"
|
|
47
|
|
48 " vim: ts=8
|