annotate runtime/syntax/ppd.vim @ 8657:c70eea7a7677 v7.4.1618

commit https://github.com/vim/vim/commit/a4f6ca717b4483eb82c6c71f71a5a5cf70e55d80 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 20 17:28:35 2016 +0100 patch 7.4.1618 Problem: Starting job with output to buffer changes options in the current buffer. Solution: Set "curbuf" earlier. (Yasuhiro Matsumoto)
author Christian Brabandt <cb@256bit.org>
date Sun, 20 Mar 2016 17:30:05 +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