annotate runtime/syntax/mf.vim @ 35143:272fb9d83b9e default tip

runtime(netrw): Remove hardcoded private.ppk logic from netrw Commit: https://github.com/vim/vim/commit/ce2ad9ffd79fe6b2307cd46b96af7d99c0dd646e Author: Nir Lichtman <nir@lichtman.org> Date: Thu May 9 20:20:36 2024 +0200 runtime(netrw): Remove hardcoded private.ppk logic from netrw closes: https://github.com/vim/vim/issues/14739 Signed-off-by: Nir Lichtman <nir@lichtman.org> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Thu, 09 May 2024 20:30:06 +0200
parents 2acb87ee55fc
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
1 vim9script
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
2
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
3 # Vim syntax file
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
4 # Language: METAFONT
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
5 # Maintainer: Nicola Vitacolonna <nvitacolonna@gmail.com>
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
6 # Former Maintainers: Andreas Scherer <andreas.scherer@pobox.com>
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
7 # Latest Revision: 2022 Aug 12
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
9 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
13 # Deprecation warnings: to be removed eventually
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
14 if exists("g:plain_mf_macros")
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
15 echomsg "[mf] g:plain_mf_macros is deprecated: use g:mf_plain_macros instead."
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
16 endif
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
17 if exists("g:plain_mf_modes")
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
18 echomsg "[mf] g:plain_mf_modes is deprecated: use g:mf_plain_modes instead."
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
19 endif
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
20 if exists("g:other_mf_macros")
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
21 echomsg "[mf] g:other_mf_macros is deprecated: use g:mf_other_macros instead."
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
22 endif
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
23
10244
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
24 syn iskeyword @,_
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
25
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
26 # METAFONT 'primitives' as defined in chapter 25 of 'The METAFONTbook'
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
27 # Page 210: 'boolean expressions'
10244
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
28 syn keyword mfBoolExp and charexists false known not odd or true unknown
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
30 # Page 210: 'numeric expression'
10244
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
31 syn keyword mfNumExp ASCII angle cosd directiontime floor hex length
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
32 syn keyword mfNumExp mexp mlog normaldeviate oct sind sqrt totalweight
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
33 syn keyword mfNumExp turningnumber uniformdeviate xpart xxpart xypart
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
34 syn keyword mfNumExp ypart yxpart yypart
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
36 # Page 211: 'internal quantities'
10244
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
37 syn keyword mfInternal autorounding boundarychar charcode chardp chardx
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
38 syn keyword mfInternal chardy charext charht charic charwd day designsize
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
39 syn keyword mfInternal fillin fontmaking granularity hppp jobname month
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
40 syn keyword mfInternal pausing proofing showstopping smoothing time
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
41 syn keyword mfInternal tracingcapsules tracingchoices tracingcommands
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
42 syn keyword mfInternal tracingedges tracingequations tracingmacros
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
43 syn keyword mfInternal tracingonline tracingoutput tracingpens
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
44 syn keyword mfInternal tracingrestores tracingspecs tracingstats
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
45 syn keyword mfInternal tracingtitles turningcheck vppp warningcheck
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
46 syn keyword mfInternal xoffset year yoffset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
48 # Page 212: 'pair expressions'
10244
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
49 syn keyword mfPairExp of penoffset point postcontrol precontrol rotated
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
50 syn keyword mfPairExp scaled shifted slanted transformed xscaled yscaled
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
51 syn keyword mfPairExp zscaled
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
53 # Page 213: 'path expressions'
10244
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
54 syn keyword mfPathExp atleast controls curl cycle makepath reverse
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
55 syn keyword mfPathExp subpath tension
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
57 # Page 214: 'pen expressions'
10244
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
58 syn keyword mfPenExp makepen nullpen pencircle
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
60 # Page 214: 'picture expressions'
10244
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
61 syn keyword mfPicExp nullpicture
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
63 # Page 214: 'string expressions'
10244
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
64 syn keyword mfStringExp char decimal readstring str substring
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
66 # Page 217: 'commands and statements'
10244
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
67 syn keyword mfCommand addto also at batchmode contour cull delimiters
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
68 syn keyword mfCommand display doublepath dropping dump end errhelp
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
69 syn keyword mfCommand errmessage errorstopmode everyjob from interim
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
70 syn keyword mfCommand inwindow keeping let message newinternal
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
71 syn keyword mfCommand nonstopmode numspecial openwindow outer randomseed
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
72 syn keyword mfCommand save scrollmode shipout show showdependencies
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
73 syn keyword mfCommand showstats showtoken showvariable special to withpen
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
74 syn keyword mfCommand withweight
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
76 # Page 56: 'types'
10244
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
77 syn keyword mfType boolean numeric pair path pen picture string
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
78 syn keyword mfType transform
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
80 # Page 155: 'grouping'
10244
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
81 syn keyword mfStatement begingroup endgroup
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
83 # Page 165: 'definitions'
10244
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
84 syn keyword mfDefinition def enddef expr primary primarydef secondary
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
85 syn keyword mfDefinition secondarydef suffix tertiary tertiarydef text
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
86 syn keyword mfDefinition vardef
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
88 # Page 169: 'conditions and loops'
10244
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
89 syn keyword mfCondition else elseif endfor exitif fi for forever
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
90 syn keyword mfCondition forsuffixes if step until
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
92 # Other primitives listed in the index
10244
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
93 syn keyword mfPrimitive charlist endinput expandafter extensible fontdimen
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
94 syn keyword mfPrimitive headerbyte inner input intersectiontimes kern
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
95 syn keyword mfPrimitive ligtable quote scantokens skipto
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
96
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
97 # Implicit suffix parameters
10244
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
98 syn match mfSuffixParam "@#\|#@\|@"
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
99
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
100 # These are just tags, but given their special status, we
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
101 # highlight them as variables
10244
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
102 syn keyword mfVariable x y
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
104 # Keywords defined by plain.mf (defined on pp.262-278)
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
105 if get(g:, "mf_plain_macros", get(g:, "plain_mf_macros", 1))
10244
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
106 syn keyword mfDef addto_currentpicture beginchar capsule_def
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
107 syn keyword mfDef change_width clear_pen_memory clearit clearpen
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
108 syn keyword mfDef clearxy culldraw cullit cutdraw
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
109 syn keyword mfDef define_blacker_pixels define_corrected_pixels
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
110 syn keyword mfDef define_good_x_pixels define_good_y_pixels
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
111 syn keyword mfDef define_horizontal_corrected_pixels define_pixels
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
112 syn keyword mfDef define_whole_blacker_pixels define_whole_pixels
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
113 syn keyword mfDef define_whole_vertical_blacker_pixels
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
114 syn keyword mfDef define_whole_vertical_pixels downto draw drawdot
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
115 syn keyword mfDef endchar erase exitunless fill filldraw fix_units
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
116 syn keyword mfDef flex font_coding_scheme font_extra_space
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
117 syn keyword mfDef font_identifier font_normal_shrink
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
118 syn keyword mfDef font_normal_space font_normal_stretch font_quad
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
119 syn keyword mfDef font_size font_slant font_x_height gfcorners gobble
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
120 syn keyword mfDef hide imagerules interact italcorr killtext
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
121 syn keyword mfDef loggingall lowres_fix makebox makegrid maketicks
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
122 syn keyword mfDef mode_def mode_setup nodisplays notransforms numtok
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
123 syn keyword mfDef openit penrazor pensquare penstroke pickup
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
124 syn keyword mfDef proofoffset proofrule range reflectedabout
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
125 syn keyword mfDef rotatedaround screenchars screenrule screenstrokes
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
126 syn keyword mfDef shipit showit smode stop superellipse takepower
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
127 syn keyword mfDef tracingall tracingnone undraw undrawdot unfill
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
128 syn keyword mfDef unfilldraw upto z
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
129 syn match mfDef "???"
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
130 syn keyword mfVardef bot byte ceiling counterclockwise cutoff decr dir
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
131 syn keyword mfVardef direction directionpoint grayfont hround incr
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
132 syn keyword mfVardef interpath inverse labelfont labels lft magstep
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
133 # Note: nodot is not a vardef, it is used as in makelabel.lft.nodot("5",z5)
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
134 # (METAFONT only)
10244
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
135 syn keyword mfVardef makelabel max min nodot penlabels penpos
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
136 syn keyword mfVardef proofrulethickness round rt savepen slantfont solve
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
137 syn keyword mfVardef tensepath titlefont top unitvector vround whatever
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
138 syn match mpVardef "\<good\.\%(x\|y\|lft\|rt\|top\|bot\)\>"
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
139 syn keyword mfPrimaryDef div dotprod gobbled mod
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
140 syn keyword mfSecondaryDef intersectionpoint
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
141 syn keyword mfTertiaryDef softjoin thru
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
142 syn keyword mfNewInternal blacker currentwindow displaying eps epsilon
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
143 syn keyword mfNewInternal infinity join_radius number_of_modes o_correction
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
144 syn keyword mfNewInternal pen_bot pen_lft pen_rt pen_top pixels_per_inch
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
145 syn keyword mfNewInternal screen_cols screen_rows tolerance
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
146 # Predefined constants
10244
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
147 syn keyword mfConstant base_name base_version blankpicture ditto down
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
148 syn keyword mfConstant fullcircle halfcircle identity left lowres origin
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
149 syn keyword mfConstant penspeck proof quartercircle right rulepen smoke
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
150 syn keyword mfConstant unitpixel unitsquare up
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
151 # Other predefined variables
10244
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
152 syn keyword mfVariable aspect_ratio currentpen extra_beginchar
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
153 syn keyword mfVariable extra_endchar currentpen_path currentpicture
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
154 syn keyword mfVariable currenttransform d extra_setup h localfont mag mode
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
155 syn keyword mfVariable mode_name w
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
156 # let statements:
10244
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
157 syn keyword mfnumExp abs
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
158 syn keyword mfPairExp rotatedabout
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
159 syn keyword mfCommand bye relax
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 endif
10244
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
161
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
162 # By default, METAFONT loads modes.mf, too
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
163 if get(g:, "plain_mf_modes", get(g:, "mf_plain_modes", 1))
10244
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
164 syn keyword mfConstant APSSixMed AgfaFourZeroZero AgfaThreeFourZeroZero
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
165 syn keyword mfConstant AtariNineFive AtariNineSix AtariSLMEightZeroFour
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
166 syn keyword mfConstant AtariSMOneTwoFour CItohEightFiveOneZero
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
167 syn keyword mfConstant CItohThreeOneZero CanonBJCSixZeroZero CanonCX
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
168 syn keyword mfConstant CanonEX CanonLBPLX CanonLBPTen CanonSX ChelgraphIBX
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
169 syn keyword mfConstant CompugraphicEightSixZeroZero
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
170 syn keyword mfConstant CompugraphicNineSixZeroZero DD DEClarge DECsmall
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
171 syn keyword mfConstant DataDiscNew EightThree EpsonAction
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
172 syn keyword mfConstant EpsonLQFiveZeroZeroLo EpsonLQFiveZeroZeroMed
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
173 syn keyword mfConstant EpsonMXFX EpsonSQEightSevenZero EpsonStylusPro
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
174 syn keyword mfConstant EpsonStylusProHigh EpsonStylusProLow
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
175 syn keyword mfConstant EpsonStylusProMed FourFour GThreefax HPDeskJet
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
176 syn keyword mfConstant HPLaserJetIIISi IBMFourTwoFiveZero IBMFourTwoOneSix
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
177 syn keyword mfConstant IBMFourTwoThreeZero IBMFourZeroOneNine
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
178 syn keyword mfConstant IBMFourZeroThreeNine IBMFourZeroTwoNine
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
179 syn keyword mfConstant IBMProPrinter IBMSixOneFiveFour IBMSixSixSevenZero
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
180 syn keyword mfConstant IBMThreeEightOneTwo IBMThreeEightTwoZero
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
181 syn keyword mfConstant IBMThreeOneNineThree IBMThreeOneSevenNine
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
182 syn keyword mfConstant IBMUlfHolleberg LASevenFive LNOthreR LNOthree
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
183 syn keyword mfConstant LNZeroOne LNZeroThree LPSFourZero LPSTwoZero
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
184 syn keyword mfConstant LexmarkFourZeroThreeNine LexmarkOptraR
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
185 syn keyword mfConstant LexmarkOptraS LinotypeLThreeThreeZero
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
186 syn keyword mfConstant LinotypeOneZeroZero LinotypeOneZeroZeroLo
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
187 syn keyword mfConstant LinotypeThreeZeroZeroHi MacTrueSize NeXTprinter
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
188 syn keyword mfConstant NeXTscreen NecTwoZeroOne Newgen NineOne
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
189 syn keyword mfConstant OCESixSevenFiveZeroPS OneTwoZero OneZeroZero
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
190 syn keyword mfConstant PrintwareSevenTwoZeroIQ Prism QMSOneSevenTwoFive
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
191 syn keyword mfConstant QMSOneSevenZeroZero QMSTwoFourTwoFive RicohA
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
192 syn keyword mfConstant RicohFortyEighty RicohFourZeroEightZero RicohLP
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
193 syn keyword mfConstant SparcPrinter StarNLOneZero VAXstation VTSix
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
194 syn keyword mfConstant VarityperFiveZeroSixZeroW
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
195 syn keyword mfConstant VarityperFourThreeZeroZeroHi
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
196 syn keyword mfConstant VarityperFourThreeZeroZeroLo
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
197 syn keyword mfConstant VarityperFourTwoZeroZero VarityperSixZeroZero
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
198 syn keyword mfConstant XeroxDocutech XeroxEightSevenNineZero
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
199 syn keyword mfConstant XeroxFourZeroFiveZero XeroxNineSevenZeroZero
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
200 syn keyword mfConstant XeroxPhaserSixTwoZeroZeroDP XeroxThreeSevenZeroZero
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
201 syn keyword mfConstant Xerox_world agfafzz agfatfzz amiga aps apssixhi
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
202 syn keyword mfConstant aselect atariezf atarinf atarins atariotf bitgraph
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
203 syn keyword mfConstant bjtenex bjtzzex bjtzzl bjtzzs boise canonbjc
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
204 syn keyword mfConstant canonex canonlbp cg cgl cgnszz citohtoz corona crs
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
205 syn keyword mfConstant cthreeten cx datadisc declarge decsmall deskjet
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
206 syn keyword mfConstant docutech dover dp dpdfezzz eighthre elvira epscszz
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
207 syn keyword mfConstant epsdraft epsdrft epsdrftl epsfast epsfastl epshi
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
208 syn keyword mfConstant epslo epsmed epsmedl epson epsonact epsonfx epsonl
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
209 syn keyword mfConstant epsonlo epsonlol epsonlq epsonsq epstylus epstylwr
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
210 syn keyword mfConstant epstyplo epstypmd epstypml epstypro epswlo epswlol
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
211 syn keyword mfConstant esphi fourfour gpx gtfax gtfaxhi gtfaxl gtfaxlo
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
212 syn keyword mfConstant gtfaxlol help hifax highfax hplaser hprugged ibm_a
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
213 syn keyword mfConstant ibmd ibmega ibmegal ibmfzon ibmfztn ibmpp ibmppl
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
214 syn keyword mfConstant ibmsoff ibmteot ibmtetz ibmtont ibmtosn ibmtosnl
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
215 syn keyword mfConstant ibmvga ibx imagen imagewriter itoh itohl itohtoz
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
216 syn keyword mfConstant itohtozl iw jetiiisi kyocera laserjet laserjetfive
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
217 syn keyword mfConstant laserjetfivemp laserjetfour laserjetfourthousand
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
218 syn keyword mfConstant laserjetfourzerozerozero laserjethi laserjetlo
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
219 syn keyword mfConstant laserjettwoonezerozero
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
220 syn keyword mfConstant laserjettwoonezerozerofastres lasermaster
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
221 syn keyword mfConstant laserwriter lasf lexmarkr lexmarks lexmarku
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
222 syn keyword mfConstant linohalf linohi linolo linolttz linoone linosuper
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
223 syn keyword mfConstant linothree linothreelo linotzzh ljfive ljfivemp
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
224 syn keyword mfConstant ljfour ljfzzz ljfzzzfr ljlo ljtozz ljtozzfr lmaster
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
225 syn keyword mfConstant lnotr lnzo lps lpstz lqhires lqlores lqmed lqmedl
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
226 syn keyword mfConstant lqmedres lview lviewl lwpro macmag mactrue modes_mf
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
227 syn keyword mfConstant ncd nec nechi neclm nectzo newdd newddl nexthi
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
228 syn keyword mfConstant nextscreen nextscrn nineone nullmode ocessfz
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
229 syn keyword mfConstant okidata okidatal okifourten okifte okihi onetz
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
230 syn keyword mfConstant onezz pcprevw pcscreen phaser phaserfs phasertf
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
231 syn keyword mfConstant phasertfl phasertl pixpt printware prntware
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
232 syn keyword mfConstant proprinter qms qmsesz qmsostf qmsoszz qmstftf ricoh
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
233 syn keyword mfConstant ricoha ricohlp ricohsp sherpa sparcptr starnlt
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
234 syn keyword mfConstant starnltl styletwo stylewr stylewri stylewriter sun
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
235 syn keyword mfConstant supre swtwo toshiba ultre varityper vs vtftzz
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
236 syn keyword mfConstant vtftzzhi vtftzzlo vtfzszw vtszz xpstzz xpstzzl
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
237 syn keyword mfConstant xrxesnz xrxfzfz xrxnszz xrxtszz
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
238 syn keyword mfDef BCPL_string coding_scheme font_face_byte
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
239 syn keyword mfDef font_family landscape
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
240 syn keyword mfDef mode_extra_info mode_help mode_param
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
241 syn keyword mfNewInternal blacker_min
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
242 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
243
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
244 # Some other basic macro names, e.g., from cmbase, logo, etc.
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
245 if get(g:, "mf_other_macros", get(g:, "other_mf_macros", 1))
10244
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
246 syn keyword mfDef beginlogochar
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
247 syn keyword mfDef font_setup
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
248 syn keyword mfPrimitive generate
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
251 # Numeric tokens
10244
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
252 syn match mfNumeric "[-]\=\d\+"
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
253 syn match mfNumeric "[-]\=\.\d\+"
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
254 syn match mfNumeric "[-]\=\d\+\.\d\+"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
256 # METAFONT lengths
10244
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
257 syn match mfLength "\<\(bp\|cc\|cm\|dd\|in\|mm\|pc\|pt\)\>"
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
258 syn match mfLength "[-]\=\d\+\(bp\|cc\|cm\|dd\|in\|mm\|pc\|pt\)\#\="
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
259 syn match mfLength "[-]\=\.\d\+\(bp\|cc\|cm\|dd\|in\|mm\|pc\|pt\)\#\="
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
260 syn match mfLength "[-]\=\d\+\.\d\+\(bp\|cc\|cm\|dd\|in\|mm\|pc\|pt\)\#\="
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
261
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
262 # String constants
10244
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
263 syn match mfOpenString /"[^"]*/
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
264 syn region mfString oneline keepend start=+"+ end=+"+
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
266 # Comments:
10244
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
267 syn keyword mfTodoComment contained TODO FIXME XXX DEBUG NOTE
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
268 syn match mfComment "%.*$" contains=mfTodoComment,@Spell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
269
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
270 # synchronizing
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
271 syn sync maxlines=100
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
272
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
273 # Define the default highlighting
10244
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
274 hi def link mfBoolExp Statement
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
275 hi def link mfNumExp Statement
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
276 hi def link mfPairExp Statement
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
277 hi def link mfPathExp Statement
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
278 hi def link mfPenExp Statement
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
279 hi def link mfPicExp Statement
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
280 hi def link mfStringExp Statement
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
281 hi def link mfInternal Identifier
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
282 hi def link mfCommand Statement
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
283 hi def link mfType Type
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
284 hi def link mfStatement Statement
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
285 hi def link mfDefinition Statement
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
286 hi def link mfCondition Conditional
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
287 hi def link mfPrimitive Statement
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
288 hi def link mfDef Function
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
289 hi def link mfVardef mfDef
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
290 hi def link mfPrimaryDef mfDef
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
291 hi def link mfSecondaryDef mfDef
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
292 hi def link mfTertiaryDef mfDef
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
293 hi def link mfCoord Identifier
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
294 hi def link mfPoint Identifier
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
295 hi def link mfNumeric Number
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
296 hi def link mfLength Number
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
297 hi def link mfComment Comment
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
298 hi def link mfString String
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
299 hi def link mfOpenString Todo
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
300 hi def link mfSuffixParam Label
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
301 hi def link mfNewInternal mfInternal
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
302 hi def link mfVariable Identifier
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
303 hi def link mfConstant Constant
876fbdd84e52 commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
304 hi def link mfTodoComment Todo
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
305
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
306 b:current_syntax = "mf"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
307
29756
2acb87ee55fc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10244
diff changeset
308 # vim: sw=2 fdm=marker