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