annotate runtime/syntax/ppd.vim @ 5723:bcb24ef20b88

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