comparison runtime/syntax/gnuplot.vim @ 6153:1e8ebf870720

Updated runtime files.
author Bram Moolenaar <bram@vim.org>
date Fri, 22 Aug 2014 19:21:47 +0200
parents b112ec5c73f0
children f717d96a39b3
comparison
equal deleted inserted replaced
6152:9d02417f8af0 6153:1e8ebf870720
1 " Vim syntax file 1 " Vim syntax file
2 " Language: gnuplot 3.8i.0 2 " Language: gnuplot 4.7.0
3 " Maintainer: John Hoelzel johnh51@users.sourceforge.net 3 " Maintainer: Andrew Rasmussen andyras@users.sourceforge.net
4 " Last Change: Mon May 26 02:33:33 UTC 2003 4 " Original Maintainer: John Hoelzel johnh51@users.sourceforge.net
5 " Filenames: *.gpi *.gih scripts: #!*gnuplot 5 " Last Change: 2014-02-24
6 " URL: http://johnh51.get.to/vim/syntax/gnuplot.vim 6 " Filenames: *.gnu *.plt *.gpi *.gih *.gp *.gnuplot scripts: #!*gnuplot
7 " 7 " URL: http://www.vim.org/scripts/script.php?script_id=4873
8 8 " Original URL: http://johnh51.get.to/vim/syntax/gnuplot.vim
9 " thanks to "David Necas (Yeti)" <yeti@physics.muni.cz> for heads up - working on more changes . 9
10 " *.gpi = GnuPlot Input - what I use because there is no other guideline. jeh 11/2000 10 " thanks to "David Necas (Yeti)" <yeti@physics.muni.cz>
11 " *.gih = makes using cut/pasting from gnuplot.gih easier ... 11
12 " #!*gnuplot = for Linux bash shell scripts of gnuplot commands. 12 " credit also to Jim Eberle <jim.eberle@fastnlight.com>
13 " emacs used a suffix of '<gp?>' 13 " for the script http://www.vim.org/scripts/script.php?script_id=1737
14 " gnuplot demo files show no preference. 14
15 " I will post mail and newsgroup comments on a standard suffix in 'URL' directory. 15 " some shortened names to make demo files look clean... jeh. 11/2000
16 16 " demos -> 3.8i ... jeh. 5/2003 - a work in progress...
17 " For version 5.x: Clear all syntax items 17 " added current commands, keywords, variables, todos, macros... amr 2014-02-24
18 " For version 6.x: Quit when a syntax file was already loaded 18
19 " For vim version 5.x: Clear all syntax items
20 " For vim version 6.x: Quit when a syntax file was already loaded
21
19 if version < 600 22 if version < 600
20 syntax clear 23 syntax clear
21 elseif exists("b:current_syntax") 24 elseif exists("b:current_syntax")
22 finish 25 finish
23 endif 26 endif
24 27
25 " some shortened names to make demo files look clean... jeh. 11/2000 28 " ---- Special characters ---- "
26 " demos -> 3.8i ... jeh. 5/2003 - a work in progress... 29
27 30 " no harm in just matching any \[char] within double quotes, right?
28 " commands 31 syn match gnuplotSpecial "\\." contained
29 32 " syn match gnuplotSpecial "\\\o\o\o\|\\x\x\x\|\\c[^"]\|\\[a-z\\]" contained
30 syn keyword gnuplotStatement cd call clear exit set unset plot splot help 33
31 syn keyword gnuplotStatement load pause quit fit rep[lot] if 34 " measurements in the units in, cm and pt are special
32 syn keyword gnuplotStatement FIT_LIMIT FIT_MAXITER FIT_START_LAMBDA 35 syn match gnuplotUnit "[0-9]+in"
33 syn keyword gnuplotStatement FIT_LAMBDA_FACTOR FIT_LOG FIT_SCRIPT 36 syn match gnuplotUnit "[0-9]+cm"
34 syn keyword gnuplotStatement print pwd reread reset save show test ! functions var 37 syn match gnuplotUnit "[0-9]+pt"
35 syn keyword gnuplotConditional if 38
36 " if is cond + stmt - ok? 39 " external (shell) commands are special
37 40 syn region gnuplotExternal start="!" end="$"
38 " numbers fm c.vim 41
39 42 " ---- Comments ---- "
40 " integer number, or floating point number without a dot and with "f". 43
44 syn region gnuplotComment start="#" end="$" contains=gnuplotTodo
45
46 " ---- Constants ---- "
47
48 " strings
49 syn region gnuplotString start=+"+ skip=+\\"+ end=+"+ contains=gnuplotSpecial
50 syn region gnuplotString start="'" end="'"
51
52 " built-in variables
53 syn keyword gnuplotNumber GNUTERM GPVAL_TERM GPVAL_TERMOPTIONS GPVAL_SPLOT
54 syn keyword gnuplotNumber GPVAL_OUTPUT GPVAL_ENCODING GPVAL_VERSION
55 syn keyword gnuplotNumber GPVAL_PATCHLEVEL GPVAL_COMPILE_OPTIONS
56 syn keyword gnuplotNumber GPVAL_MULTIPLOT GPVAL_PLOT GPVAL_VIEW_ZSCALE
57 syn keyword gnuplotNumber GPVAL_TERMINALS GPVAL_pi GPVAL_NaN
58 syn keyword gnuplotNumber GPVAL_ERRNO GPVAL_ERRMSG GPVAL_PWD
59 syn keyword gnuplotNumber pi NaN GPVAL_LAST_PLOT GPVAL_TERM_WINDOWID
60 syn keyword gnuplotNumber GPVAL_X_MIN GPVAL_X_MAX GPVAL_X_LOG
61 syn keyword gnuplotNumber GPVAL_DATA_X_MIN GPVAL_DATA_X_MAX GPVAL_Y_MIN
62 syn keyword gnuplotNumber GPVAL_Y_MAX GPVAL_Y_LOG GPVAL_DATA_Y_MIN
63 syn keyword gnuplotNumber GPVAL_DATA_Y_MAX GPVAL_X2_MIN GPVAL_X2_MAX
64 syn keyword gnuplotNumber GPVAL_X2_LOG GPVAL_DATA_X2_MIN GPVAL_DATA_X2_MAX
65 syn keyword gnuplotNumber GPVAL_Y2_MIN GPVAL_Y2_MAX GPVAL_Y2_LOG
66 syn keyword gnuplotNumber GPVAL_DATA_Y2_MIN GPVAL_DATA_Y2_MAX GPVAL_Z_MIN
67 syn keyword gnuplotNumber GPVAL_Z_MAX GPVAL_Z_LOG GPVAL_DATA_Z_MIN
68 syn keyword gnuplotNumber GPVAL_DATA_Z_MAX GPVAL_CB_MIN GPVAL_CB_MAX
69 syn keyword gnuplotNumber GPVAL_CB_LOG GPVAL_DATA_CB_MIN GPVAL_DATA_CB_MAX
70 syn keyword gnuplotNumber GPVAL_T_MIN GPVAL_T_MAX GPVAL_T_LOG GPVAL_U_MIN
71 syn keyword gnuplotNumber GPVAL_U_MAX GPVAL_U_LOG GPVAL_V_MIN GPVAL_V_MAX
72 syn keyword gnuplotNumber GPVAL_V_LOG GPVAL_R_MIN GPVAL_R_LOG
73 syn keyword gnuplotNumber GPVAL_TERM_XMIN GPVAL_TERM_XMAX GPVAL_TERM_YMIN
74 syn keyword gnuplotNumber GPVAL_TERM_YMAX GPVAL_TERM_XSIZE
75 syn keyword gnuplotNumber GPVAL_TERM_YSIZE GPVAL_VIEW_MAP GPVAL_VIEW_ROT_X
76 syn keyword gnuplotNumber GPVAL_VIEW_ROT_Z GPVAL_VIEW_SCALE
77
78 " function name variables
79 syn match gnuplotNumber "GPFUN_[a-zA-Z_]*"
80
81 " stats variables
82 syn keyword gnuplotNumber STATS_records STATS_outofrange STATS_invalid
83 syn keyword gnuplotNumber STATS_blank STATS_blocks STATS_columns STATS_min
84 syn keyword gnuplotNumber STATS_max STATS_index_min STATS_index_max
85 syn keyword gnuplotNumber STATS_lo_quartile STATS_median STATS_up_quartile
86 syn keyword gnuplotNumber STATS_mean STATS_stddev STATS_sum STATS_sumsq
87 syn keyword gnuplotNumber STATS_correlation STATS_slope STATS_intercept
88 syn keyword gnuplotNumber STATS_sumxy STATS_pos_min_y STATS_pos_max_y
89 syn keyword gnuplotNumber STATS_mean STATS_stddev STATS_mean_x STATS_sum_x
90 syn keyword gnuplotNumber STATS_stddev_x STATS_sumsq_x STATS_min_x
91 syn keyword gnuplotNumber STATS_max_x STATS_median_x STATS_lo_quartile_x
92 syn keyword gnuplotNumber STATS_up_quartile_x STATS_index_min_x
93 syn keyword gnuplotNumber STATS_index_max_x STATS_mean_y STATS_stddev_y
94 syn keyword gnuplotNumber STATS_sum_y STATS_sumsq_y STATS_min_y
95 syn keyword gnuplotNumber STATS_max_y STATS_median_y STATS_lo_quartile_y
96 syn keyword gnuplotNumber STATS_up_quartile_y STATS_index_min_y
97 syn keyword gnuplotNumber STATS_index_max_y STATS_correlation STATS_sumxy
98
99 " deprecated fit variables
100 syn keyword gnuplotError FIT_LIMIT FIT_MAXITER FIT_START_LAMBDA
101 syn keyword gnuplotError FIT_LAMBDA_FACTOR FIT_LOG FIT_SCRIPT
102
103 " numbers, from c.vim
104
105 " integer number, or floating point number without a dot and with "f".
41 syn case ignore 106 syn case ignore
42 syn match gnuplotNumber "\<[0-9]\+\(u\=l\=\|lu\|f\)\>" 107 syn match gnuplotNumber "\<[0-9]\+\(u\=l\=\|lu\|f\)\>"
43 " floating point number, with dot, optional exponent 108
109 " floating point number, with dot, optional exponent
44 syn match gnuplotFloat "\<[0-9]\+\.[0-9]*\(e[-+]\=[0-9]\+\)\=[fl]\=\>" 110 syn match gnuplotFloat "\<[0-9]\+\.[0-9]*\(e[-+]\=[0-9]\+\)\=[fl]\=\>"
45 " floating point number, starting with a dot, optional exponent 111
112 " floating point number, starting with a dot, optional exponent
46 syn match gnuplotFloat "\.[0-9]\+\(e[-+]\=[0-9]\+\)\=[fl]\=\>" 113 syn match gnuplotFloat "\.[0-9]\+\(e[-+]\=[0-9]\+\)\=[fl]\=\>"
47 " floating point number, without dot, with exponent 114
115 " floating point number, without dot, with exponent
48 syn match gnuplotFloat "\<[0-9]\+e[-+]\=[0-9]\+[fl]\=\>" 116 syn match gnuplotFloat "\<[0-9]\+e[-+]\=[0-9]\+[fl]\=\>"
49 " hex number 117
118 " hex number
50 syn match gnuplotNumber "\<0x[0-9a-f]\+\(u\=l\=\|lu\)\>" 119 syn match gnuplotNumber "\<0x[0-9a-f]\+\(u\=l\=\|lu\)\>"
51 syn case match 120 syn case match
52 " flag an octal number with wrong digits by not hilighting 121
122 " flag an octal number with wrong digits by not highlighting
53 syn match gnuplotOctalError "\<0[0-7]*[89]" 123 syn match gnuplotOctalError "\<0[0-7]*[89]"
54 124
55 " plot args 125 " ---- Identifiers: Functions ---- "
56 126
57 syn keyword gnuplotType u[sing] tit[le] notit[le] wi[th] steps fs[teps] 127 " numerical functions
58 syn keyword gnuplotType title notitle t 128 syn keyword gnuplotFunc abs acos acosh airy arg asin asinh atan atan2
59 syn keyword gnuplotType with w 129 syn keyword gnuplotFunc atanh EllipticK EllipticE EllipticPi besj0 besj1
60 syn keyword gnuplotType li[nes] l 130 syn keyword gnuplotFunc besy0 besy1 ceil cos cosh erf erfc exp expint
61 " t - too much? w - too much? l - too much? 131 syn keyword gnuplotFunc floor gamma ibeta inverf igamma imag invnorm int
62 syn keyword gnuplotType linespoints via 132 syn keyword gnuplotFunc lambertw lgamma log log10 norm rand real sgn sin
63 133 syn keyword gnuplotFunc sin sinh sqrt tan tanh voigt
64 " funcs 134
65 135 " string functions
66 syn keyword gnuplotFunc abs acos acosh arg asin asinh atan atanh atan2 136 syn keyword gnuplotFunc gprintf sprintf strlen strstrt substr strftime
67 syn keyword gnuplotFunc besj0 besj1 besy0 besy1 137 syn keyword gnuplotFunc strptime system word words
68 syn keyword gnuplotFunc ceil column cos cosh erf erfc exp floor gamma 138
69 syn keyword gnuplotFunc ibeta inverf igamma imag invnorm int lgamma 139 " other functions
70 syn keyword gnuplotFunc log log10 norm rand real sgn sin sinh sqrt tan 140 syn keyword gnuplotFunc column columnhead columnheader defined exists
71 syn keyword gnuplotFunc lambertw 141 syn keyword gnuplotFunc hsv2rgb stringcolumn timecolumn tm_hour tm_mday
72 syn keyword gnuplotFunc tanh valid 142 syn keyword gnuplotFunc tm_min tm_mon tm_sec tm_wday tm_yday tm_year
73 syn keyword gnuplotFunc tm_hour tm_mday tm_min tm_mon tm_sec 143 syn keyword gnuplotFunc time valid value
74 syn keyword gnuplotFunc tm_wday tm_yday tm_year 144
75 145 " ---- Statements ---- "
76 " set vars 146
77 147 " common (builtin) variable names
78 syn keyword gnuplotType xdata timefmt grid noytics ytics fs 148 syn keyword gnuplotKeyword x y t u v z s
79 syn keyword gnuplotType logscale time notime mxtics nomxtics style mcbtics 149
80 syn keyword gnuplotType nologscale 150 " conditionals
81 syn keyword gnuplotType axes x1y2 unique acs[plines] 151 syn keyword gnuplotConditional if else
82 syn keyword gnuplotType size origin multiplot xtics xr[ange] yr[ange] square nosquare ratio noratio 152
83 syn keyword gnuplotType binary matrix index every thru sm[ooth] 153 " repeats
84 syn keyword gnuplotType all angles degrees radians 154 syn keyword gnuplotRepeat do for while
85 syn keyword gnuplotType arrow noarrow autoscale noautoscale arrowstyle 155
86 " autoscale args = x y xy z t ymin ... - too much? 156 " operators
87 " needs code to: using title vs autoscale t 157 syn match gnuplotOperator "[-+*/^|&?:]"
88 syn keyword gnuplotType x y z zcb 158 syn match gnuplotOperator "\*\*"
89 syn keyword gnuplotType linear cubicspline bspline order level[s] 159 syn match gnuplotOperator "&&"
90 syn keyword gnuplotType auto disc[rete] incr[emental] from to head nohead 160 syn match gnuplotOperator "||"
91 syn keyword gnuplotType graph base both nosurface table out[put] data 161
92 syn keyword gnuplotType bar border noborder boxwidth 162 " Keywords
93 syn keyword gnuplotType clabel noclabel clip noclip cntrp[aram] 163
94 syn keyword gnuplotType contour nocontour 164 " keywords for 'fit' command
95 syn keyword gnuplotType dgrid3d nodgrid3d dummy encoding format 165 syn keyword gnuplotKeyword via z x:z x:z:s x:y:z:s
96 " set encoding args not included - yet. 166 syn keyword gnuplotKeyword x:y:t:z:s x:y:t:u:z:s x:y:t:u:v:z:s
97 syn keyword gnuplotType function grid nogrid hidden[3d] nohidden[3d] isosample[s] key nokey 167
98 syn keyword gnuplotType historysize nohistorysize 168 " keywords for 'plot' command
99 syn keyword gnuplotType defaults offset nooffset trianglepattern undefined noundefined altdiagonal bentover noaltdiagonal nobentover 169 " 'axes' keyword
100 syn keyword gnuplotType left right top bottom outside below samplen spacing width height box nobox linestyle ls linetype lt linewidth lw 170 syn keyword gnuplotKeyword axes x1y1 x1y2 x2y1 x2y2
101 syn keyword gnuplotType Left Right autotitles noautotitles enhanced noenhanced 171 " 'binary' keyword
102 syn keyword gnuplotType isosamples 172 syn keyword gnuplotKeyword binary matrix general array record format endian
103 syn keyword gnuplotType label nolabel logscale nolog[scale] missing center font locale 173 syn keyword gnuplotKeyword filetype avs edf png scan transpose dx dy dz
104 syn keyword gnuplotType mapping margin bmargin lmargin rmargin tmargin spherical cylindrical cartesian 174 syn keyword gnuplotKeyword flipx flipy flipz origin center rotate using
105 syn keyword gnuplotType linestyle nolinestyle linetype lt linewidth lw pointtype pt pointsize ps 175 syn keyword gnuplotKeyword perpendicular skip every
106 syn keyword gnuplotType mouse nomouse 176 " datafile keywords
107 syn keyword gnuplotType nooffsets data candlesticks financebars linespoints lp vector nosurface 177 syn keyword gnuplotKeyword binary nonuniform matrix index every using
108 syn keyword gnuplotType term[inal] linux aed767 aed512 gpic 178 syn keyword gnuplotKeyword smooth volatile noautoscale every index
109 syn keyword gnuplotType regis tek410x tek40 vttek kc-tek40xx 179 " 'smooth' keywords
110 syn keyword gnuplotType km-tek40xx selanar bitgraph xlib x11 X11 180 syn keyword gnuplotKeyword unique frequency cumulative cnormal kdensity
111 " x11 args 181 syn keyword gnuplotKeyword csplines acsplines bezer sbezier
112 syn keyword gnuplotType aifm cgm dumb fig gif small large size nofontlist winword6 corel dxf emf 182 " deprecated 'thru' keyword
113 syn keyword gnuplotType hpgl 183 syn keyword gnuplotError thru
114 " syn keyword gnuplotType transparent hp2623a hp2648 hp500c pcl5 why jeh 184 " 'using' keyword
115 syn keyword gnuplotType hp2623a hp2648 hp500c pcl5 185 syn keyword gnuplotKeyword using u xticlabels yticlabels zticlabels
116 syn match gnuplotType "\<transparent\>" 186 syn keyword gnuplotKeyword x2ticlabels y2ticlabels xtic ytic ztic
117 syn keyword gnuplotType hpljii hpdj hppj imagen mif pbm png svg 187 " 'errorbars' keywords
118 syn keyword gnuplotType postscript enhanced_postscript qms table 188 syn keyword gnuplotKeyword errorbars xerrorbars yerrorbars xyerrorbars
119 " postscript editing values? 189 " 'errorlines' keywords
120 syn keyword gnuplotType tgif tkcanvas epson-180dpi epson-60dpi 190 syn keyword gnuplotKeyword errorlines xerrorlines yerrorlines xyerrorlines
121 syn keyword gnuplotType epson-lx800 nec-cp6 okidata starc 191 " 'title' keywords
122 syn keyword gnuplotType tandy-60dpi latex emtex pslatex pstex epslatex 192 syn keyword gnuplotKeyword title t tit notitle columnheader at beginning
123 syn keyword gnuplotType eepic tpic pstricks texdraw mf metafont mpost mp 193 syn keyword gnuplotKeyword end
124 syn keyword gnuplotType timestamp notimestamp 194 " 'with' keywords
125 syn keyword gnuplotType variables version 195 syn keyword gnuplotKeyword with w linestyle ls linetype lt linewidth
126 syn keyword gnuplotType x2data y2data ydata zdata 196 syn keyword gnuplotKeyword lw linecolor lc pointtype pt pointsize ps
127 syn keyword gnuplotType reverse writeback noreverse nowriteback 197 syn keyword gnuplotKeyword fill fs nohidden3d nocontours nosurface palette
128 syn keyword gnuplotType axis mirror autofreq nomirror rotate autofreq norotate 198 " styles for 'with'
129 syn keyword gnuplotType update 199 syn keyword gnuplotKeyword lines l points p linespoints lp surface dots
130 syn keyword gnuplotType multiplot nomultiplot mytics 200 syn keyword gnuplotKeyword impulses labels vectors steps fsteps histeps
131 syn keyword gnuplotType nomytics mztics nomztics mx2tics nomx2tics 201 syn keyword gnuplotKeyword errorbars errorlines financebars xerrorbars
132 syn keyword gnuplotType my2tics nomy2tics offsets origin output 202 syn keyword gnuplotKeyword xerrorlines xyerrorbars yerrorbars yerrorlines
133 syn keyword gnuplotType para[metric] nopara[metric] pointsize polar nopolar 203 syn keyword gnuplotKeyword boxes boxerrorbars boxxyerrorbars boxplot
134 syn keyword gnuplotType zrange x2range y2range rrange cbrange 204 syn keyword gnuplotKeyword candlesticks circles ellipses filledcurves
135 syn keyword gnuplotType trange urange vrange sample[s] size 205 syn keyword gnuplotKeyword histogram image rgbimage rgbalpha pm3d variable
136 syn keyword gnuplotType bezier boxerrorbars boxes bargraph bar[s] 206
137 syn keyword gnuplotType boxxy[errorbars] csplines dots fsteps histeps impulses 207 " keywords for 'save' command
138 syn keyword gnuplotType line[s] linesp[oints] points poiinttype sbezier splines steps 208 syn keyword gnuplotKeyword save functions func variables all var terminal
139 " w lt lw ls = optional 209 syn keyword gnuplotKeyword term set
140 syn keyword gnuplotType vectors xerr[orbars] xyerr[orbars] yerr[orbars] financebars candlesticks vector 210
141 syn keyword gnuplotType errorb[ars] surface 211 " keywords for 'set/show' command
142 syn keyword gnuplotType filledcurve[s] pm3d x1 x2 y1 y2 xy closed 212 " set angles
143 syn keyword gnuplotType at pi front 213 syn keyword gnuplotKeyword angles degrees deg radians rad
144 syn keyword gnuplotType errorlines xerrorlines yerrorlines xyerrorlines 214 " set arrow
145 syn keyword gnuplotType tics ticslevel ticscale time timefmt view 215 syn keyword gnuplotKeyword arrow from to rto length angle arrowstyle as
146 syn keyword gnuplotType xdata xdtics noxdtics ydtics noydtics 216 syn keyword gnuplotKeyword nohead head backhead heads size filled empty
147 syn keyword gnuplotType zdtics nozdtics x2dtics nox2dtics y2dtics noy2dtics 217 syn keyword gnuplotKeyword nofilled front back linestyle linetype linewidth
148 syn keyword gnuplotType xlab[el] ylab[el] zlab[el] cblab[el] x2label y2label xmtics 218 " set autoscale
149 syn keyword gnuplotType xmtics noxmtics ymtics noymtics zmtics nozmtics 219 " TODO regexp here
150 syn keyword gnuplotType x2mtics nox2mtics y2mtics noy2mtics 220 syn keyword gnuplotKeyword autoscale x y z cb x2 y2 zy min max fixmin
151 syn keyword gnuplotType cbdtics nocbdtics cbmtics nocbmtics cbtics nocbtics 221 syn keyword gnuplotKeyword fixmax fix keepfix noextend
152 syn keyword gnuplotType xtics noxtics ytics noytics 222 " set bars
153 syn keyword gnuplotType ztics noztics x2tics nox2tics 223 syn keyword gnuplotKeyword bars small large fullwidth front back
154 syn keyword gnuplotType y2tics noy2tics zero nozero zeroaxis nozeroaxis 224 " set bind
155 syn keyword gnuplotType xzeroaxis noxzeroaxis yzeroaxis noyzeroaxis 225 syn keyword gnuplotKeyword bind
156 syn keyword gnuplotType x2zeroaxis nox2zeroaxis y2zeroaxis noy2zeroaxis 226 " set margins
157 syn keyword gnuplotType angles one two fill empty solid pattern 227 " TODO regexp
158 syn keyword gnuplotType default 228 syn keyword gnuplotKeyword margin bmargin lmargin rmargin tmargin
159 syn keyword gnuplotType scansautomatic flush b[egin] noftriangles implicit 229 " set border
160 " b too much? - used in demo 230 syn keyword gnuplotKeyword border front back
161 syn keyword gnuplotType palette positive negative ps_allcF nops_allcF maxcolors 231 " set boxwidth
162 syn keyword gnuplotType push fontfile pop 232 syn keyword gnuplotKeyword boxwidth absolute relative
163 syn keyword gnuplotType rgbformulae defined file color model gradient colornames 233 " deprecated set clabel
164 syn keyword gnuplotType RGB HSV CMY YIQ XYZ 234 syn keyword gnuplotError clabel
165 syn keyword gnuplotType colorbox vertical horizontal user bdefault 235 " set clip
166 syn keyword gnuplotType loadpath fontpath decimalsign in out 236 syn keyword gnuplotKeyword clip points one two
167 237 " set cntrlabel
168 " comments + strings 238 syn keyword gnuplotKeyword cntrlabel format font start interval onecolor
169 syn region gnuplotComment start="#" end="$" 239 " set cntrparam
170 syn region gnuplotComment start=+"+ skip=+\\"+ end=+"+ 240 syn keyword gnuplotKeyword cntrparam linear cubicspline bspline points
171 syn region gnuplotComment start=+'+ end=+'+ 241 syn keyword gnuplotKeyword order levels auto discrete incremental
172 242 " set colorbox
173 " Define the default highlighting. 243 syn keyword gnuplotKeyword colorbox vertical horizontal default user origin
244 syn keyword gnuplotKeyword size front back noborder bdefault border
245 " show colornames
246 syn keyword gnuplotKeyword colornames
247 " set contour
248 syn keyword gnuplotKeyword contour base surface both
249 " set datafile
250 syn keyword gnuplotKeyword datafile fortran nofpe_trap missing separator
251 syn keyword gnuplotKeyword whitespace tab comma commentschars binary
252 " set decimalsign
253 syn keyword gnuplotKeyword decimalsign locale
254 " set dgrid3d
255 syn keyword gnuplotKeyword dgrid3d splines qnorm gauss cauchy exp box hann
256 syn keyword gnuplotKeyword kdensity
257 " set dummy
258 syn keyword gnuplotKeyword dummy
259 " set encoding
260 syn keyword gnuplotKeyword encoding default iso_8859_1 iso_8859_15
261 syn keyword gnuplotKeyword iso_8859_2 iso_8859_9 koi8r koi8u cp437 cp850
262 syn keyword gnuplotKeyword cp852 cp950 cp1250 cp1251 cp1254 sjis utf8
263 " set fit
264 syn keyword gnuplotKeyword fit logfile default quiet noquiet results brief
265 syn keyword gnuplotKeyword verbose errorvariables noerrorvariables
266 syn keyword gnuplotKeyword errorscaling noerrorscaling prescale noprescale
267 syn keyword gnuplotKeyword maxiter none limit limit_abs start-lambda script
268 syn keyword gnuplotKeyword lambda-factor
269 " set fontpath
270 syn keyword gnuplotKeyword fontpath
271 " set format
272 syn keyword gnuplotKeyword format
273 " show functions
274 syn keyword gnuplotKeyword functions
275 " set grid
276 syn keyword gnuplotKeyword grid polar layerdefault xtics ytics ztics x2tics
277 syn keyword gnuplotKeyword y2tics cbtics mxtics mytics mztics mx2tics
278 syn keyword gnuplotKeyword my2tics mcbtics xmtics ymtics zmtics x2mtics
279 syn keyword gnuplotKeyword y2mtics cbmtics noxtics noytics noztics nox2tics
280 syn keyword gnuplotKeyword noy2tics nocbtics nomxtics nomytics nomztics
281 syn keyword gnuplotKeyword nomx2tics nomy2tics nomcbtics
282 " set hidden3d
283 syn keyword gnuplotKeyword hidden3d offset trianglepattern undefined
284 syn keyword gnuplotKeyword altdiagonal noaltdiagonal bentover nobentover
285 syn keyword gnuplotKeyword noundefined
286 " set historysize
287 syn keyword gnuplotKeyword historysize
288 " set isosamples
289 syn keyword gnuplotKeyword isosamples
290 " set key
291 syn keyword gnuplotKeyword key on off inside outside at left right center
292 syn keyword gnuplotKeyword top bottom vertical horizontal Left Right
293 syn keyword gnuplotKeyword opaque noopaque reverse noreverse invert maxrows
294 syn keyword gnuplotKeyword noinvert samplen spacing width height autotitle
295 syn keyword gnuplotKeyword noautotitle title enhanced noenhanced font
296 syn keyword gnuplotKeyword textcolor box nobox linetype linewidth maxcols
297 " set label
298 syn keyword gnuplotKeyword label left center right rotate norotate by font
299 syn keyword gnuplotKeyword front back textcolor point nopoint offset boxed
300 syn keyword gnuplotKeyword hypertext
301 " set linetype
302 syn keyword gnuplotKeyword linetype
303 " set link
304 syn keyword gnuplotKeyword link via inverse
305 " set loadpath
306 syn keyword gnuplotKeyword loadpath
307 " set locale
308 syn keyword gnuplotKeyword locale
309 " set logscale
310 syn keyword gnuplotKeyword logscale log
311 " set macros
312 syn keyword gnuplotKeyword macros
313 " set mapping
314 syn keyword gnuplotKeyword mapping cartesian spherical cylindrical
315 " set mouse
316 syn keyword gnuplotKeyword mouse doubleclick nodoubleclick zoomcoordinates
317 syn keyword gnuplotKeyword nozoomcoordinates ruler noruler at polardistance
318 syn keyword gnuplotKeyword nopolardistance deg tan format clipboardformat
319 syn keyword gnuplotKeyword mouseformat labels nolabels zoomjump nozoomjump
320 syn keyword gnuplotKeyword verbose noverbose
321 " set multiplot
322 syn keyword gnuplotKeyword multiplot title font layout rowsfirst downwards
323 syn keyword gnuplotKeyword downwards upwards scale offset
324 " set object
325 syn keyword gnuplotKeyword object behind fillcolor fc fs rectangle ellipse
326 syn keyword gnuplotKeyword circle polygon at center size units xy xx yy to
327 syn keyword gnuplotKeyword from
328 " set offsets
329 syn keyword gnuplotKeyword offsets
330 " set origin
331 syn keyword gnuplotKeyword origin
332 " set output
333 syn keyword gnuplotKeyword output
334 " set parametric
335 syn keyword gnuplotKeyword parametric
336 " show plot
337 syn keyword gnuplotKeyword plot add2history
338 " set pm3d
339 syn keyword gnuplotKeyword hidden3d interpolate scansautomatic scansforward
340 syn keyword gnuplotKeyword scansbackward depthorder flush begin center end
341 syn keyword gnuplotKeyword ftriangles noftriangles clip1in clip4in mean map
342 syn keyword gnuplotKeyword corners2color geomean harmean rms median min max
343 syn keyword gnuplotKeyword c1 c2 c3 c4 pm3d at nohidden3d implicit explicit
344 " set palette
345 syn keyword gnuplotKeyword palette gray color gamma rgbformulae defined
346 syn keyword gnuplotKeyword file functions cubehelix start cycles saturation
347 syn keyword gnuplotKeyword model RGB HSV CMY YIQ XYZ positive negative
348 syn keyword gnuplotKeyword nops_allcF ps_allcF maxcolors float int gradient
349 syn keyword gnuplotKeyword fit2rgbformulae rgbformulae
350 " set pointintervalbox
351 syn keyword gnuplotKeyword pointintervalbox
352 " set pointsize
353 syn keyword gnuplotKeyword pointsize
354 " set polar
355 syn keyword gnuplotKeyword polar
356 " set print
357 syn keyword gnuplotKeyword print append
358 " set psdir
359 syn keyword gnuplotKeyword psdir
360 " set raxis
361 syn keyword gnuplotKeyword raxis rrange rtics
362 " set samples
363 syn keyword gnuplotKeyword samples
364 " set size
365 syn keyword gnuplotKeyword size square nosquare ratio noratio
366 " set style
367 syn keyword gnuplotKeyword style function data noborder rectangle arrow
368 syn keyword gnuplotKeyword default nohead head heads size filled empty
369 syn keyword gnuplotKeyword nofilled front back boxplot range fraction
370 syn keyword gnuplotKeyword outliers nooutliers pointtype candlesticks
371 syn keyword gnuplotKeyword separation labels off auto x x2 sorted unsorted
372 syn keyword gnuplotKeyword fill empty transparent solid pattern border
373 syn keyword gnuplotKeyword increment userstyles financebars line default
374 syn keyword gnuplotKeyword linetype lt linecolor lc linewidth lw pointtype
375 syn keyword gnuplotKeyword pt pointsize ps pointinterval pi palette circle
376 syn keyword gnuplotKeyword radius graph screen wedge nowedge ellipse size
377 syn keyword gnuplotKeyword units xx xy yy histogram line textbox opaque
378 syn keyword gnuplotKeyword border noborder
379 " set surface
380 syn keyword gnuplotKeyword surface implicit explicit
381 " set table
382 syn keyword gnuplotKeyword table
383 " set terminal (list of terminals)
384 syn keyword gnuplotKeyword terminal term push pop aed512 aed767 aifm aqua
385 syn keyword gnuplotKeyword be cairo cairolatex canvas cgm context corel
386 syn keyword gnuplotKeyword debug dumb dxf dxy800a eepic emf emxvga epscairo
387 syn keyword gnuplotKeyword epslatex epson_180dpi excl fig ggi gif gpic hpgl
388 syn keyword gnuplotKeyword grass hp2623a hp2648 hp500c hpljii hppj imagen
389 syn keyword gnuplotKeyword jpeg kyo latex linux lua mf mif mp next openstep
390 syn keyword gnuplotKeyword pbm pdf pdfcairo pm png pngcairo postscript
391 syn keyword gnuplotKeyword pslatex pstex pstricks qms qt regis sun svg svga
392 syn keyword gnuplotKeyword tek40 tek410x texdraw tgif tikz tkcanvas tpic
393 syn keyword gnuplotKeyword vgagl vws vx384 windows wx wxt x11 xlib
394 " keywords for 'set terminal'
395 syn keyword gnuplotKeyword color monochrome dashlength dl eps pdf fontscale
396 syn keyword gnuplotKeyword standalone blacktext colortext colourtext header
397 syn keyword gnuplotKeyword noheader mono color solid dashed notransparent
398 syn keyword gnuplotKeyword crop crop background input rounded butt square
399 syn keyword gnuplotKeyword size fsize standalone name jsdir defaultsize
400 syn keyword gnuplotKeyword timestamp notimestamp colour mitered beveled
401 syn keyword gnuplotKeyword round squared palfuncparam blacktext nec_cp6
402 syn keyword gnuplotKeyword mppoints inlineimages externalimages defaultfont
403 syn keyword gnuplotKeyword aspect feed nofeed rotate small tiny standalone
404 syn keyword gnuplotKeyword oldstyle newstyle level1 leveldefault level3
405 syn keyword gnuplotKeyword background nobackground solid clip noclip
406 syn keyword gnuplotKeyword colortext colourtext epson_60dpi epson_lx800
407 syn keyword gnuplotKeyword okidata starc tandy_60dpi dpu414 nec_cp6 draft
408 syn keyword gnuplotKeyword medium large normal landscape portrait big
409 syn keyword gnuplotKeyword inches pointsmax textspecial texthidden
410 syn keyword gnuplotKeyword thickness depth version acceleration giant
411 syn keyword gnuplotKeyword delay loop optimize nooptimize pspoints
412 syn keyword gnuplotKeyword FNT9X17 FNT13X25 interlace nointerlace courier
413 syn keyword gnuplotKeyword originreset nooriginreset gparrows nogparrows
414 syn keyword gnuplotKeyword picenvironment nopicenvironment tightboundingbox
415 syn keyword gnuplotKeyword notightboundingbox charsize gppoints nogppoints
416 syn keyword gnuplotKeyword fontscale textscale fulldoc nofulldoc standalone
417 syn keyword gnuplotKeyword preamble header tikzplot tikzarrows notikzarrows
418 syn keyword gnuplotKeyword cmykimages externalimages noexternalimages
419 syn keyword gnuplotKeyword polyline vectors magnification psnfss nopsnfss
420 syn keyword gnuplotKeyword psnfss-version7 prologues a4paper amstex fname
421 syn keyword gnuplotKeyword fsize server persist widelines interlace
422 syn keyword gnuplotKeyword truecolor notruecolor defaultplex simplex duplex
423 syn keyword gnuplotKeyword nofontfiles adobeglyphnames noadobeglyphnames
424 syn keyword gnuplotKeyword nostandalone metric textrigid animate nopspoints
425 syn keyword gnuplotKeyword hpdj FNT5X9 roman emtex rgbimages bitmap
426 syn keyword gnuplotKeyword nobitmap providevars nointerlace add delete
427 syn keyword gnuplotKeyword auxfile hacktext unit raise palfuncparam
428 syn keyword gnuplotKeyword noauxfile nohacktext nounit noraise ctrl noctrl
429 syn keyword gnuplotKeyword close widget fixed dynamic tek40xx vttek
430 syn keyword gnuplotKeyword kc-tek40xx km-tek40xx bitgraph perltk
431 syn keyword gnuplotKeyword interactive red green blue interpolate mode
432 syn keyword gnuplotKeyword position ctrlq replotonresize position noctrlq
433 syn keyword gnuplotKeyword noreplotonresize
434 " set termoption
435 syn keyword gnuplotKeyword termoption font fontscale solid dashed
436 " set tics
437 syn keyword gnuplotKeyword tics add axis border mirror nomirror in out
438 syn keyword gnuplotKeyword scale rotate norotate by offset nooffset left
439 syn keyword gnuplotKeyword autojustify format font textcolor right center
440 " deprecated set ticslevel
441 syn keyword gnuplotError ticslevel ticscale
442 " set timestamp
443 syn keyword gnuplotKeyword timestamp top bottom offset font
444 " set timefmt
445 syn keyword gnuplotKeyword timefmt
446 " set title
447 syn keyword gnuplotKeyword title offset font textcolor tc
448 " set ranges
449 syn keyword gnuplotKeyword trange urange vrange
450 " show variables
451 syn keyword gnuplotKeyword variables
452 " show version
453 syn keyword gnuplotKeyword version
454 " set view
455 syn keyword gnuplotKeyword view map equal noequal xy xyz
456 " set x2data
457 syn keyword gnuplotKeyword xdata ydata zdata x2data y2data cbdata xdtics
458 syn keyword gnuplotKeyword ydtics zdtics x2dtics y2dtics cbdtics xzeroaxis
459 syn keyword gnuplotKeyword yzeroaxis zzeroaxis x2zeroaxis y2zeroaxis
460 syn keyword gnuplotKeyword cbzeroaxis time geographic
461 " set label
462 syn keyword gnuplotKeyword xlabel ylabel zlabel x2label y2label cblabel
463 syn keyword gnuplotKeyword offset font textcolor by parallel
464 " set range
465 syn keyword gnuplotKeyword xrange yrange zrange x2range y2range cbrange
466 " set xyplane
467 syn keyword gnuplotKeyword xyplane
468 " set zeroaxis
469 " set zero
470 syn keyword gnuplotKeyword zero
471 " set zeroaxis
472 syn keyword gnuplotKeyword zeroaxis
473
474 " keywords for 'stats' command
475 syn keyword gnuplotKeyword nooutput
476
477 " keywords for 'test' command
478 syn keyword gnuplotKeyword terminal palette rgb rbg grb gbr brg bgr
479
480 " ---- Macros ---- "
481
482 syn region gnuplotMacro start="@" end=" "
483
484 " ---- Todos ---- "
485
486 syn keyword gnuplotTodo contained TODO FIXME XXX
487
488 " ---- Types: gnuplot commands ---- "
489
490 " I set the commands as Types to distinguish them visually from keywords for the
491 " commands. This comes at the end of the syntax file because some commands
492 " are redundant with keywords. It's probably too much trouble to go and
493 " create special regions for each redundant keyword/command pair, which means
494 " that some keywords (e.g. 'p') will be highlighted as commands.
495
496 syn keyword gnuplotStatement cd call clear evaluate exit fit help history
497 syn keyword gnuplotStatement load lower pause plot p print pwd quit raise
498 syn keyword gnuplotStatement refresh replot rep reread reset save set show
499 syn keyword gnuplotStatement shell splot spstats system test undefine unset
500 syn keyword gnuplotStatement update
501
502 " ---- Define the default highlighting ---- "
174 " For version 5.7 and earlier: only when not done already 503 " For version 5.7 and earlier: only when not done already
175 " For version 5.8 and later: only when an item doesn't have highlighting yet 504 " For version 5.8 and later: only when an item doesn't have highlighting yet
176 if version >= 508 || !exists("did_gnuplot_syntax_inits") 505 if version >= 508 || !exists("did_gnuplot_syntax_inits")
177 if version < 508 506 if version < 508
178 let did_gnuplot_syntax_inits = 1 507 let did_gnuplot_syntax_inits = 1
179 command -nargs=+ HiLink hi link <args> 508 command -nargs=+ HiLink hi link <args>
180 else 509 else
181 command -nargs=+ HiLink hi def link <args> 510 command -nargs=+ HiLink hi def link <args>
182 endif 511 endif
183 512
184 HiLink gnuplotStatement Statement 513 " ---- Comments ---- "
185 HiLink gnuplotConditional Conditional 514 HiLink gnuplotComment Comment
515
516 " ---- Constants ---- "
517 HiLink gnuplotString String
186 HiLink gnuplotNumber Number 518 HiLink gnuplotNumber Number
187 HiLink gnuplotFloat Float 519 HiLink gnuplotFloat Float
520
521 " ---- Identifiers ---- "
522 HiLink gnuplotIdentifier Identifier
523
524 " ---- Statements ---- "
525 HiLink gnuplotConditional Conditional
526 HiLink gnuplotRepeat Repeat
527 HiLink gnuplotKeyword Keyword
528 HiLink gnuplotOperator Operator
529
530 " ---- PreProcs ---- "
531 HiLink gnuplotMacro Macro
532
533 " ---- Types ---- "
534 HiLink gnuplotStatement Type
535 HiLink gnuplotFunc Identifier
536
537 " ---- Specials ---- "
538 HiLink gnuplotSpecial Special
539 HiLink gnuplotUnit Special
540 HiLink gnuplotExternal Special
541
542 " ---- Errors ---- "
543 HiLink gnuplotError Error
188 HiLink gnuplotOctalError Error 544 HiLink gnuplotOctalError Error
189 HiLink gnuplotFunc Type 545
190 HiLink gnuplotType Type 546 " ---- Todos ---- "
191 HiLink gnuplotComment Comment 547 HiLink gnuplotTodo Todo
192 548
193 delcommand HiLink 549 delcommand HiLink
194 endif 550 endif
195 551
196 let b:current_syntax = "gnuplot" 552 let b:current_syntax = "gnuplot"