annotate runtime/syntax/mgp.vim @ 6539:6da912e32896 v7.4.596

updated for version 7.4.596 Problem: Tiny build doesn't compile. (Ike Devolder) Solution: Add #ifdef.
author Bram Moolenaar <bram@vim.org>
date Tue, 27 Jan 2015 13:33:23 +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: mgp - MaGic Point
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Gerfried Fuchs <alfie@ist.org>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Filenames: *.mgp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Last Change: 25 Apr 2001
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " URL: http://alfie.ist.org/vim/syntax/mgp.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " Comments are very welcome - but please make sure that you are commenting on
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " the latest version of this file.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " SPAM is _NOT_ welcome - be ready to be reported!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match mgpLineSkip "\\$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 " all the commands that are currently recognized
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn keyword mgpCommand contained size fore back bgrad left leftfill center
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn keyword mgpCommand contained right shrink lcutin rcutin cont xfont vfont
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword mgpCommand contained tfont tmfont tfont0 bar image newimage
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword mgpCommand contained prefix icon bimage default tab vgap hgap
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword mgpCommand contained pause mark again system filter endfilter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn keyword mgpCommand contained vfcap tfdir deffont font embed endembed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn keyword mgpCommand contained noop pcache include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 " charset is not yet supported :-)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 " syn keyword mgpCommand contained charset
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn region mgpFile contained start=+"+ skip=+\\\\\|\\"+ end=+"+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn match mgpValue contained "\d\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn match mgpSize contained "\d\+x\d\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match mgpLine +^%.*$+ contains=mgpCommand,mgpFile,mgpSize,mgpValue
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 " Comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn match mgpPercent +^%%.*$+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn match mgpHash +^#.*$+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 " these only work alone
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn match mgpPage +^%page$+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn match mgpNoDefault +^%nodefault$+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 " 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
53 if version >= 508 || !exists("did_mgp_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 let did_mgp_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 let did_mgp_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 HiLink mgpLineSkip Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 HiLink mgpHash mgpComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 HiLink mgpPercent mgpComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 HiLink mgpComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 HiLink mgpCommand Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 HiLink mgpLine Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 HiLink mgpFile String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 HiLink mgpSize Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 HiLink mgpValue Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 HiLink mgpPage mgpDefine
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 HiLink mgpNoDefault mgpDefine
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 HiLink mgpDefine Define
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 let b:current_syntax = "mgp"