2 " Language: PPD (PostScript printer description) file
3 " Maintainer: Bjoern Jacke <bjacke@suse.de>
4 " Last Change: 2001-10-06
6 " For version 5.x: Clear all syntax items
7 " For version 6.x: Quit when a syntax file was already loaded
10 elseif exists("b:current_syntax")
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:"
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")
28 let did_ahdl_syn_inits = 1
29 command -nargs=+ HiLink hi link <args>
31 command -nargs=+ HiLink hi def link <args>
35 HiLink ppdComment Comment
36 HiLink ppdDefine Statement
38 HiLink ppdUIGroup Function
40 HiLink ppdGUIText Type
41 HiLink ppdContraints Special
46 let b:current_syntax = "ppd"