198 lines · 9.4 KB · Text
RawDownload
" Vim syntax file" Language:	gnuplot 3.8i.0" Maintainer:	John Hoelzel johnh51@users.sourceforge.net" Last Change:	Mon May 26 02:33:33 UTC 2003" Filenames:	*.gpi  *.gih   scripts: #!*gnuplot" URL:		http://johnh51.get.to/vim/syntax/gnuplot.vim" " thanks to "David Necas (Yeti)" <yeti@physics.muni.cz> for heads up - working on more changes ." *.gpi      = GnuPlot Input - what I use because there is no other guideline. jeh 11/2000" *.gih      = makes using cut/pasting from gnuplot.gih easier ..." #!*gnuplot = for Linux bash shell scripts of gnuplot commands."	       emacs used a suffix of '<gp?>'" gnuplot demo files show no preference." I will post mail and newsgroup comments on a standard suffix in 'URL' directory. " For version 5.x: Clear all syntax items" For version 6.x: Quit when a syntax file was already loadedif version < 600  syntax clearelseif exists("b:current_syntax")  finishendif " some shortened names to make demo files look clean... jeh. 11/2000" demos -> 3.8i ... jeh. 5/2003 - a work in progress... " commands syn keyword gnuplotStatement	cd call clear exit set unset plot splot helpsyn keyword gnuplotStatement	load pause quit fit rep[lot] ifsyn keyword gnuplotStatement	FIT_LIMIT FIT_MAXITER FIT_START_LAMBDAsyn keyword gnuplotStatement	FIT_LAMBDA_FACTOR FIT_LOG FIT_SCRIPTsyn keyword gnuplotStatement	print pwd reread reset save show test ! functions varsyn keyword gnuplotConditional	if" if is cond + stmt - ok? " numbers fm c.vim "	integer number, or floating point number without a dot and with "f".syn case    ignoresyn match   gnuplotNumber	"\<[0-9]\+\(u\=l\=\|lu\|f\)\>""	floating point number, with dot, optional exponentsyn match   gnuplotFloat	"\<[0-9]\+\.[0-9]*\(e[-+]\=[0-9]\+\)\=[fl]\=\>""	floating point number, starting with a dot, optional exponentsyn match   gnuplotFloat	"\.[0-9]\+\(e[-+]\=[0-9]\+\)\=[fl]\=\>""	floating point number, without dot, with exponentsyn match   gnuplotFloat	"\<[0-9]\+e[-+]\=[0-9]\+[fl]\=\>""	hex numbersyn match   gnuplotNumber	"\<0x[0-9a-f]\+\(u\=l\=\|lu\)\>"syn case    match"	flag an octal number with wrong digits by not hilightingsyn match   gnuplotOctalError	"\<0[0-7]*[89]" " plot args syn keyword gnuplotType		u[sing] tit[le] notit[le] wi[th] steps fs[teps]syn keyword gnuplotType		title notitle tsyn keyword gnuplotType		with wsyn keyword gnuplotType		li[nes] l" t - too much?  w - too much?  l - too much?syn keyword gnuplotType		linespoints via " funcs syn keyword gnuplotFunc		abs acos acosh arg asin asinh atan atanh atan2syn keyword gnuplotFunc		besj0 besj1 besy0 besy1syn keyword gnuplotFunc		ceil column cos cosh erf erfc exp floor gammasyn keyword gnuplotFunc		ibeta inverf igamma imag invnorm int lgammasyn keyword gnuplotFunc		log log10 norm rand real sgn sin sinh sqrt tansyn keyword gnuplotFunc		lambertwsyn keyword gnuplotFunc		tanh validsyn keyword gnuplotFunc		tm_hour tm_mday tm_min tm_mon tm_secsyn keyword gnuplotFunc		tm_wday tm_yday tm_year " set vars syn keyword gnuplotType		xdata timefmt grid noytics ytics fssyn keyword gnuplotType		logscale time notime mxtics nomxtics style mcbticssyn keyword gnuplotType		nologscalesyn keyword gnuplotType		axes x1y2 unique acs[plines]syn keyword gnuplotType		size origin multiplot xtics xr[ange] yr[ange] square nosquare ratio noratiosyn keyword gnuplotType		binary matrix index every thru sm[ooth]syn keyword gnuplotType		all angles degrees radianssyn keyword gnuplotType		arrow noarrow autoscale noautoscale arrowstyle" autoscale args = x y xy z t ymin ... - too much?" needs code to: using title vs autoscale tsyn keyword gnuplotType		x y z zcbsyn keyword gnuplotType		linear  cubicspline  bspline order level[s]syn keyword gnuplotType		auto disc[rete] incr[emental] from to head noheadsyn keyword gnuplotType		graph base both nosurface table out[put] datasyn keyword gnuplotType		bar border noborder boxwidthsyn keyword gnuplotType		clabel noclabel clip noclip cntrp[aram]syn keyword gnuplotType		contour nocontoursyn keyword gnuplotType		dgrid3d nodgrid3d dummy encoding format" set encoding args not included - yet.syn keyword gnuplotType		function grid nogrid hidden[3d] nohidden[3d] isosample[s] key nokeysyn keyword gnuplotType		historysize nohistorysizesyn keyword gnuplotType		defaults offset nooffset trianglepattern undefined noundefined altdiagonal bentover noaltdiagonal nobentoversyn keyword gnuplotType		left right top bottom outside below samplen spacing width height box nobox linestyle ls linetype lt linewidth lwsyn keyword gnuplotType		Left Right autotitles noautotitles enhanced noenhancedsyn keyword gnuplotType		isosamplessyn keyword gnuplotType		label nolabel logscale nolog[scale] missing center font localesyn keyword gnuplotType		mapping margin bmargin lmargin rmargin tmargin spherical cylindrical cartesiansyn keyword gnuplotType		linestyle nolinestyle linetype lt linewidth lw pointtype pt pointsize pssyn keyword gnuplotType		mouse nomousesyn keyword gnuplotType		nooffsets data candlesticks financebars linespoints lp vector nosurfacesyn keyword gnuplotType		term[inal] linux aed767 aed512 gpicsyn keyword gnuplotType		regis tek410x tek40 vttek kc-tek40xxsyn keyword gnuplotType		km-tek40xx selanar bitgraph xlib x11 X11" x11 argssyn keyword gnuplotType		aifm cgm dumb fig gif small large size nofontlist winword6 corel dxf emfsyn keyword gnuplotType		hpgl" syn keyword gnuplotType	transparent hp2623a hp2648 hp500c pcl5				      why jehsyn keyword gnuplotType		hp2623a hp2648 hp500c pcl5syn match gnuplotType		"\<transparent\>"syn keyword gnuplotType		hpljii hpdj hppj imagen mif pbm png svgsyn keyword gnuplotType		postscript enhanced_postscript qms table" postscript editing values?syn keyword gnuplotType		tgif tkcanvas epson-180dpi epson-60dpisyn keyword gnuplotType		epson-lx800 nec-cp6 okidata starcsyn keyword gnuplotType		tandy-60dpi latex emtex pslatex pstex epslatexsyn keyword gnuplotType		eepic tpic pstricks texdraw mf metafont mpost mpsyn keyword gnuplotType		timestamp notimestampsyn keyword gnuplotType		variables versionsyn keyword gnuplotType		x2data y2data ydata zdatasyn keyword gnuplotType		reverse writeback noreverse nowritebacksyn keyword gnuplotType		axis mirror autofreq nomirror rotate autofreq norotatesyn keyword gnuplotType		updatesyn keyword gnuplotType		multiplot nomultiplot myticssyn keyword gnuplotType		nomytics mztics nomztics mx2tics nomx2ticssyn keyword gnuplotType		my2tics nomy2tics offsets origin outputsyn keyword gnuplotType		para[metric] nopara[metric] pointsize polar nopolarsyn keyword gnuplotType		zrange x2range y2range rrange cbrangesyn keyword gnuplotType		trange urange vrange sample[s] sizesyn keyword gnuplotType		bezier boxerrorbars boxes bargraph bar[s]syn keyword gnuplotType		boxxy[errorbars] csplines dots fsteps histeps impulsessyn keyword gnuplotType		line[s] linesp[oints] points poiinttype sbezier splines steps" w lt lw ls	      = optionalsyn keyword gnuplotType		vectors xerr[orbars] xyerr[orbars] yerr[orbars] financebars candlesticks vectorsyn keyword gnuplotType		errorb[ars] surfacesyn keyword gnuplotType		filledcurve[s] pm3d   x1 x2 y1 y2 xy closedsyn keyword gnuplotType		at pi frontsyn keyword gnuplotType		errorlines xerrorlines yerrorlines xyerrorlinessyn keyword gnuplotType		tics ticslevel ticscale time timefmt viewsyn keyword gnuplotType		xdata xdtics noxdtics ydtics noydticssyn keyword gnuplotType		zdtics nozdtics x2dtics nox2dtics y2dtics noy2dticssyn keyword gnuplotType		xlab[el] ylab[el] zlab[el] cblab[el] x2label y2label xmticssyn keyword gnuplotType		xmtics noxmtics ymtics noymtics zmtics nozmticssyn keyword gnuplotType		x2mtics nox2mtics y2mtics noy2mticssyn keyword gnuplotType		cbdtics nocbdtics cbmtics nocbmtics cbtics nocbticssyn keyword gnuplotType		xtics noxtics ytics noyticssyn keyword gnuplotType		ztics noztics x2tics nox2ticssyn keyword gnuplotType		y2tics noy2tics zero nozero zeroaxis nozeroaxissyn keyword gnuplotType		xzeroaxis noxzeroaxis yzeroaxis noyzeroaxissyn keyword gnuplotType		x2zeroaxis nox2zeroaxis y2zeroaxis noy2zeroaxissyn keyword gnuplotType		angles one two fill empty solid patternsyn keyword gnuplotType		defaultsyn keyword gnuplotType		scansautomatic flush b[egin] noftriangles implicit" b too much? - used in demosyn keyword gnuplotType		palette positive negative ps_allcF nops_allcF maxcolorssyn keyword gnuplotType		push fontfile popsyn keyword gnuplotType		rgbformulae defined file color model gradient colornamessyn keyword gnuplotType		RGB HSV CMY YIQ XYZsyn keyword gnuplotType		colorbox vertical horizontal user bdefaultsyn keyword gnuplotType		loadpath fontpath decimalsign in out " comments + stringssyn region gnuplotComment	start="#" end="$"syn region gnuplotComment	start=+"+ skip=+\\"+ end=+"+syn region gnuplotComment	start=+'+	     end=+'+ " Define the default highlighting." For version 5.7 and earlier: only when not done already" For version 5.8 and later: only when an item doesn't have highlighting yetif version >= 508 || !exists("did_gnuplot_syntax_inits")  if version < 508    let did_gnuplot_syntax_inits = 1    command -nargs=+ HiLink hi link <args>  else    command -nargs=+ HiLink hi def link <args>  endif   HiLink gnuplotStatement	Statement  HiLink gnuplotConditional	Conditional  HiLink gnuplotNumber		Number  HiLink gnuplotFloat		Float  HiLink gnuplotOctalError	Error  HiLink gnuplotFunc		Type  HiLink gnuplotType		Type  HiLink gnuplotComment	Comment   delcommand HiLinkendif let b:current_syntax = "gnuplot" " vim: ts=8