annotate runtime/syntax/gnuplot.vim @ 3184:074ddc768fea v7.3.362

updated for version 7.3.362 Problem: ml_get error when using ":g" with folded lines. Solution: Adjust the line number for changed_lines(). (Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Wed, 30 Nov 2011 17:01:58 +0100
parents b112ec5c73f0
children 1e8ebf870720
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: gnuplot 3.8i.0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: John Hoelzel johnh51@users.sourceforge.net
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last Change: Mon May 26 02:33:33 UTC 2003
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Filenames: *.gpi *.gih scripts: #!*gnuplot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " URL: http://johnh51.get.to/vim/syntax/gnuplot.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " thanks to "David Necas (Yeti)" <yeti@physics.muni.cz> for heads up - working on more changes .
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " *.gpi = GnuPlot Input - what I use because there is no other guideline. jeh 11/2000
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " *.gih = makes using cut/pasting from gnuplot.gih easier ...
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " #!*gnuplot = for Linux bash shell scripts of gnuplot commands.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 " emacs used a suffix of '<gp?>'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " gnuplot demo files show no preference.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 " I will post mail and newsgroup comments on a standard suffix in 'URL' directory.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 " some shortened names to make demo files look clean... jeh. 11/2000
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 " demos -> 3.8i ... jeh. 5/2003 - a work in progress...
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 " commands
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn keyword gnuplotStatement cd call clear exit set unset plot splot help
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn keyword gnuplotStatement load pause quit fit rep[lot] if
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn keyword gnuplotStatement FIT_LIMIT FIT_MAXITER FIT_START_LAMBDA
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn keyword gnuplotStatement FIT_LAMBDA_FACTOR FIT_LOG FIT_SCRIPT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn keyword gnuplotStatement print pwd reread reset save show test ! functions var
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn keyword gnuplotConditional if
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 " if is cond + stmt - ok?
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 " numbers fm c.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 " integer number, or floating point number without a dot and with "f".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn match gnuplotNumber "\<[0-9]\+\(u\=l\=\|lu\|f\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 " floating point number, with dot, optional exponent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn match gnuplotFloat "\<[0-9]\+\.[0-9]*\(e[-+]\=[0-9]\+\)\=[fl]\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 " floating point number, starting with a dot, optional exponent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn match gnuplotFloat "\.[0-9]\+\(e[-+]\=[0-9]\+\)\=[fl]\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 " floating point number, without dot, with exponent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn match gnuplotFloat "\<[0-9]\+e[-+]\=[0-9]\+[fl]\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 " hex number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn match gnuplotNumber "\<0x[0-9a-f]\+\(u\=l\=\|lu\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 " flag an octal number with wrong digits by not hilighting
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn match gnuplotOctalError "\<0[0-7]*[89]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 " plot args
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn keyword gnuplotType u[sing] tit[le] notit[le] wi[th] steps fs[teps]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn keyword gnuplotType title notitle t
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn keyword gnuplotType with w
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn keyword gnuplotType li[nes] l
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 " t - too much? w - too much? l - too much?
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn keyword gnuplotType linespoints via
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 " funcs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn keyword gnuplotFunc abs acos acosh arg asin asinh atan atanh atan2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn keyword gnuplotFunc besj0 besj1 besy0 besy1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn keyword gnuplotFunc ceil column cos cosh erf erfc exp floor gamma
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syn keyword gnuplotFunc ibeta inverf igamma imag invnorm int lgamma
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 syn keyword gnuplotFunc log log10 norm rand real sgn sin sinh sqrt tan
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn keyword gnuplotFunc lambertw
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 syn keyword gnuplotFunc tanh valid
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 syn keyword gnuplotFunc tm_hour tm_mday tm_min tm_mon tm_sec
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 syn keyword gnuplotFunc tm_wday tm_yday tm_year
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 " set vars
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 syn keyword gnuplotType xdata timefmt grid noytics ytics fs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 syn keyword gnuplotType logscale time notime mxtics nomxtics style mcbtics
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 syn keyword gnuplotType nologscale
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 syn keyword gnuplotType axes x1y2 unique acs[plines]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 syn keyword gnuplotType size origin multiplot xtics xr[ange] yr[ange] square nosquare ratio noratio
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 syn keyword gnuplotType binary matrix index every thru sm[ooth]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 syn keyword gnuplotType all angles degrees radians
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 syn keyword gnuplotType arrow noarrow autoscale noautoscale arrowstyle
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 " autoscale args = x y xy z t ymin ... - too much?
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 " needs code to: using title vs autoscale t
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 syn keyword gnuplotType x y z zcb
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 syn keyword gnuplotType linear cubicspline bspline order level[s]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 syn keyword gnuplotType auto disc[rete] incr[emental] from to head nohead
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 syn keyword gnuplotType graph base both nosurface table out[put] data
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 syn keyword gnuplotType bar border noborder boxwidth
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 syn keyword gnuplotType clabel noclabel clip noclip cntrp[aram]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 syn keyword gnuplotType contour nocontour
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 syn keyword gnuplotType dgrid3d nodgrid3d dummy encoding format
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 " set encoding args not included - yet.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 syn keyword gnuplotType function grid nogrid hidden[3d] nohidden[3d] isosample[s] key nokey
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 syn keyword gnuplotType historysize nohistorysize
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 syn keyword gnuplotType defaults offset nooffset trianglepattern undefined noundefined altdiagonal bentover noaltdiagonal nobentover
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 syn keyword gnuplotType left right top bottom outside below samplen spacing width height box nobox linestyle ls linetype lt linewidth lw
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 syn keyword gnuplotType Left Right autotitles noautotitles enhanced noenhanced
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 syn keyword gnuplotType isosamples
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 syn keyword gnuplotType label nolabel logscale nolog[scale] missing center font locale
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 syn keyword gnuplotType mapping margin bmargin lmargin rmargin tmargin spherical cylindrical cartesian
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 syn keyword gnuplotType linestyle nolinestyle linetype lt linewidth lw pointtype pt pointsize ps
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 syn keyword gnuplotType mouse nomouse
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 syn keyword gnuplotType nooffsets data candlesticks financebars linespoints lp vector nosurface
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 syn keyword gnuplotType term[inal] linux aed767 aed512 gpic
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 syn keyword gnuplotType regis tek410x tek40 vttek kc-tek40xx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 syn keyword gnuplotType km-tek40xx selanar bitgraph xlib x11 X11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 " x11 args
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 syn keyword gnuplotType aifm cgm dumb fig gif small large size nofontlist winword6 corel dxf emf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 syn keyword gnuplotType hpgl
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 " syn keyword gnuplotType transparent hp2623a hp2648 hp500c pcl5 why jeh
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 syn keyword gnuplotType hp2623a hp2648 hp500c pcl5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 syn match gnuplotType "\<transparent\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 syn keyword gnuplotType hpljii hpdj hppj imagen mif pbm png svg
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 syn keyword gnuplotType postscript enhanced_postscript qms table
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 " postscript editing values?
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 syn keyword gnuplotType tgif tkcanvas epson-180dpi epson-60dpi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 syn keyword gnuplotType epson-lx800 nec-cp6 okidata starc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 syn keyword gnuplotType tandy-60dpi latex emtex pslatex pstex epslatex
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 syn keyword gnuplotType eepic tpic pstricks texdraw mf metafont mpost mp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 syn keyword gnuplotType timestamp notimestamp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 syn keyword gnuplotType variables version
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 syn keyword gnuplotType x2data y2data ydata zdata
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 syn keyword gnuplotType reverse writeback noreverse nowriteback
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 syn keyword gnuplotType axis mirror autofreq nomirror rotate autofreq norotate
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 syn keyword gnuplotType update
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 syn keyword gnuplotType multiplot nomultiplot mytics
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 syn keyword gnuplotType nomytics mztics nomztics mx2tics nomx2tics
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 syn keyword gnuplotType my2tics nomy2tics offsets origin output
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 syn keyword gnuplotType para[metric] nopara[metric] pointsize polar nopolar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 syn keyword gnuplotType zrange x2range y2range rrange cbrange
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 syn keyword gnuplotType trange urange vrange sample[s] size
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 syn keyword gnuplotType bezier boxerrorbars boxes bargraph bar[s]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 syn keyword gnuplotType boxxy[errorbars] csplines dots fsteps histeps impulses
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 syn keyword gnuplotType line[s] linesp[oints] points poiinttype sbezier splines steps
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 " w lt lw ls = optional
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 syn keyword gnuplotType vectors xerr[orbars] xyerr[orbars] yerr[orbars] financebars candlesticks vector
657
b112ec5c73f0 updated for version 7.0193
vimboss
parents: 7
diff changeset
141 syn keyword gnuplotType errorb[ars] surface
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 syn keyword gnuplotType filledcurve[s] pm3d x1 x2 y1 y2 xy closed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 syn keyword gnuplotType at pi front
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 syn keyword gnuplotType errorlines xerrorlines yerrorlines xyerrorlines
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 syn keyword gnuplotType tics ticslevel ticscale time timefmt view
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 syn keyword gnuplotType xdata xdtics noxdtics ydtics noydtics
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 syn keyword gnuplotType zdtics nozdtics x2dtics nox2dtics y2dtics noy2dtics
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 syn keyword gnuplotType xlab[el] ylab[el] zlab[el] cblab[el] x2label y2label xmtics
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 syn keyword gnuplotType xmtics noxmtics ymtics noymtics zmtics nozmtics
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 syn keyword gnuplotType x2mtics nox2mtics y2mtics noy2mtics
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 syn keyword gnuplotType cbdtics nocbdtics cbmtics nocbmtics cbtics nocbtics
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 syn keyword gnuplotType xtics noxtics ytics noytics
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 syn keyword gnuplotType ztics noztics x2tics nox2tics
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 syn keyword gnuplotType y2tics noy2tics zero nozero zeroaxis nozeroaxis
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 syn keyword gnuplotType xzeroaxis noxzeroaxis yzeroaxis noyzeroaxis
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 syn keyword gnuplotType x2zeroaxis nox2zeroaxis y2zeroaxis noy2zeroaxis
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 syn keyword gnuplotType angles one two fill empty solid pattern
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 syn keyword gnuplotType default
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 syn keyword gnuplotType scansautomatic flush b[egin] noftriangles implicit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 " b too much? - used in demo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 syn keyword gnuplotType palette positive negative ps_allcF nops_allcF maxcolors
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 syn keyword gnuplotType push fontfile pop
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 syn keyword gnuplotType rgbformulae defined file color model gradient colornames
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 syn keyword gnuplotType RGB HSV CMY YIQ XYZ
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 syn keyword gnuplotType colorbox vertical horizontal user bdefault
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 syn keyword gnuplotType loadpath fontpath decimalsign in out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 " comments + strings
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 syn region gnuplotComment start="#" end="$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 syn region gnuplotComment start=+"+ skip=+\\"+ end=+"+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 syn region gnuplotComment start=+'+ end=+'+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 if version >= 508 || !exists("did_gnuplot_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 let did_gnuplot_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 HiLink gnuplotStatement Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 HiLink gnuplotConditional Conditional
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 HiLink gnuplotNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 HiLink gnuplotFloat Float
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 HiLink gnuplotOctalError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 HiLink gnuplotFunc Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 HiLink gnuplotType Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 HiLink gnuplotComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 let b:current_syntax = "gnuplot"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 " vim: ts=8