annotate runtime/syntax/ppd.vim @ 9260:ac8180818504 v7.4.1913

commit https://github.com/vim/vim/commit/1610d052413e0ed664498853a47acc2d677a22d1 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 9 22:53:01 2016 +0200 patch 7.4.1913 Problem: When ":doautocmd" is used modelines are used even when no autocommands were executed. (Daniel Hahler) Solution: Skip processing modelines. (closes https://github.com/vim/vim/issues/854)
author Christian Brabandt <cb@256bit.org>
date Thu, 09 Jun 2016 23:00:05 +0200
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