codekingpro/portable-devtools
115k
1" Vim syntax file2" Language: gnuplot 4.7.03" Maintainer: Josh Wainwright <wainwright DOT ja AT gmail DOT com>4" Last Maintainer: Andrew Rasmussen andyras@users.sourceforge.net5" Original Maintainer: John Hoelzel johnh51@users.sourceforge.net6" Last Change: 2021 Nov 167" additional changes from PR #89498" Filenames: *.gnu *.plt *.gpi *.gih *.gp *.gnuplot scripts: #!*gnuplot9" URL: http://www.vim.org/scripts/script.php?script_id=487310" Original URL: http://johnh51.get.to/vim/syntax/gnuplot.vim11 12" thanks to "David Necas (Yeti)" <yeti@physics.muni.cz>13 14" credit also to Jim Eberle <jim.eberle@fastnlight.com>15" for the script http://www.vim.org/scripts/script.php?script_id=173716 17" some shortened names to make demo files look clean... jeh. 11/200018" demos -> 3.8i ... jeh. 5/2003 - a work in progress...19" added current commands, keywords, variables, todos, macros... amr 2014-02-2420 21" For vim version 5.x: Clear all syntax items22" For vim version 6.x: Quit when a syntax file was already loaded23 24" quit when a syntax file was already loaded25if exists("b:current_syntax")26 finish27endif28 29" ---- Special characters ---- "30 31" no harm in just matching any \[char] within double quotes, right?32syn match gnuplotSpecial "\\." contained33" syn match gnuplotSpecial "\\\o\o\o\|\\x\x\x\|\\c[^"]\|\\[a-z\\]" contained34 35" measurements in the units in, cm and pt are special36syn match gnuplotUnit "\d+in"37syn match gnuplotUnit "\d+cm"38syn match gnuplotUnit "\d+pt"39 40" external (shell) commands are special41syn region gnuplotExternal start="^\s*!" end="$"42 43" ---- Comments ---- "44 45syn region gnuplotComment start="#" end="$" contains=gnuplotTodo,@Spell46 47" ---- Constants ---- "48 49" strings50syn region gnuplotString start=+"+ skip=+\\"+ end=+"+ contains=gnuplotSpecial,@Spell51syn region gnuplotString start="'" end="'" contains=@Spell52 53" built-in variables54syn keyword gnuplotNumber GNUTERM GPVAL_TERM GPVAL_TERMOPTIONS GPVAL_SPLOT55syn keyword gnuplotNumber GPVAL_OUTPUT GPVAL_ENCODING GPVAL_VERSION56syn keyword gnuplotNumber GPVAL_PATCHLEVEL GPVAL_COMPILE_OPTIONS57syn keyword gnuplotNumber GPVAL_MULTIPLOT GPVAL_PLOT GPVAL_VIEW_ZSCALE58syn keyword gnuplotNumber GPVAL_TERMINALS GPVAL_pi GPVAL_NaN59syn keyword gnuplotNumber GPVAL_ERRNO GPVAL_ERRMSG GPVAL_PWD60syn keyword gnuplotNumber pi NaN GPVAL_LAST_PLOT GPVAL_TERM_WINDOWID61syn keyword gnuplotNumber GPVAL_X_MIN GPVAL_X_MAX GPVAL_X_LOG62syn keyword gnuplotNumber GPVAL_DATA_X_MIN GPVAL_DATA_X_MAX GPVAL_Y_MIN63syn keyword gnuplotNumber GPVAL_Y_MAX GPVAL_Y_LOG GPVAL_DATA_Y_MIN64syn keyword gnuplotNumber GPVAL_DATA_Y_MAX GPVAL_X2_MIN GPVAL_X2_MAX65syn keyword gnuplotNumber GPVAL_X2_LOG GPVAL_DATA_X2_MIN GPVAL_DATA_X2_MAX66syn keyword gnuplotNumber GPVAL_Y2_MIN GPVAL_Y2_MAX GPVAL_Y2_LOG67syn keyword gnuplotNumber GPVAL_DATA_Y2_MIN GPVAL_DATA_Y2_MAX GPVAL_Z_MIN68syn keyword gnuplotNumber GPVAL_Z_MAX GPVAL_Z_LOG GPVAL_DATA_Z_MIN69syn keyword gnuplotNumber GPVAL_DATA_Z_MAX GPVAL_CB_MIN GPVAL_CB_MAX70syn keyword gnuplotNumber GPVAL_CB_LOG GPVAL_DATA_CB_MIN GPVAL_DATA_CB_MAX71syn keyword gnuplotNumber GPVAL_T_MIN GPVAL_T_MAX GPVAL_T_LOG GPVAL_U_MIN72syn keyword gnuplotNumber GPVAL_U_MAX GPVAL_U_LOG GPVAL_V_MIN GPVAL_V_MAX73syn keyword gnuplotNumber GPVAL_V_LOG GPVAL_R_MIN GPVAL_R_LOG74syn keyword gnuplotNumber GPVAL_TERM_XMIN GPVAL_TERM_XMAX GPVAL_TERM_YMIN75syn keyword gnuplotNumber GPVAL_TERM_YMAX GPVAL_TERM_XSIZE76syn keyword gnuplotNumber GPVAL_TERM_YSIZE GPVAL_VIEW_MAP GPVAL_VIEW_ROT_X77syn keyword gnuplotNumber GPVAL_VIEW_ROT_Z GPVAL_VIEW_SCALE78 79" function name variables80syn match gnuplotNumber "GPFUN_\h*"81 82" stats variables83syn keyword gnuplotNumber STATS_records STATS_outofrange STATS_invalid84syn keyword gnuplotNumber STATS_blank STATS_blocks STATS_columns STATS_min85syn keyword gnuplotNumber STATS_max STATS_index_min STATS_index_max86syn keyword gnuplotNumber STATS_lo_quartile STATS_median STATS_up_quartile87syn keyword gnuplotNumber STATS_mean STATS_stddev STATS_sum STATS_sumsq88syn keyword gnuplotNumber STATS_correlation STATS_slope STATS_intercept89syn keyword gnuplotNumber STATS_sumxy STATS_pos_min_y STATS_pos_max_y90syn keyword gnuplotNumber STATS_mean STATS_stddev STATS_mean_x STATS_sum_x91syn keyword gnuplotNumber STATS_stddev_x STATS_sumsq_x STATS_min_x92syn keyword gnuplotNumber STATS_max_x STATS_median_x STATS_lo_quartile_x93syn keyword gnuplotNumber STATS_up_quartile_x STATS_index_min_x94syn keyword gnuplotNumber STATS_index_max_x STATS_mean_y STATS_stddev_y95syn keyword gnuplotNumber STATS_sum_y STATS_sumsq_y STATS_min_y96syn keyword gnuplotNumber STATS_max_y STATS_median_y STATS_lo_quartile_y97syn keyword gnuplotNumber STATS_up_quartile_y STATS_index_min_y98syn keyword gnuplotNumber STATS_index_max_y STATS_correlation STATS_sumxy99 100" deprecated fit variables101syn keyword gnuplotError FIT_LIMIT FIT_MAXITER FIT_START_LAMBDA102syn keyword gnuplotError FIT_LAMBDA_FACTOR FIT_LOG FIT_SCRIPT103 104" numbers, from c.vim105 106" integer number, or floating point number without a dot and with "f".107syn case ignore108syn match gnuplotNumber "\<\d\+\(u\=l\=\|lu\|f\)\>"109 110" floating point number, with dot, optional exponent111syn match gnuplotFloat "\<\d\+\.\d*\(e[-+]\=\d\+\)\=[fl]\=\>"112 113" floating point number, starting with a dot, optional exponent114syn match gnuplotFloat "\.\d\+\(e[-+]\=\d\+\)\=[fl]\=\>"115 116" floating point number, without dot, with exponent117syn match gnuplotFloat "\<\d\+e[-+]\=\d\+[fl]\=\>"118 119" hex number120syn match gnuplotNumber "\<0x\x\+\(u\=l\=\|lu\)\>"121syn case match122 123" flag an octal number with wrong digits by not highlighting124syn match gnuplotOctalError "\<0\o*[89]"125 126" ---- Identifiers: Functions ---- "127 128" numerical functions129syn keyword gnuplotFunc abs acos acosh airy arg asin asinh atan atan2130syn keyword gnuplotFunc atanh EllipticK EllipticE EllipticPi besj0 besj1131syn keyword gnuplotFunc besy0 besy1 ceil cos cosh erf erfc exp expint132syn keyword gnuplotFunc floor gamma ibeta inverf igamma imag invnorm int133syn keyword gnuplotFunc lambertw lgamma log log10 norm rand real sgn sin134syn keyword gnuplotFunc sin sinh sqrt tan tanh voigt135 136" string functions137syn keyword gnuplotFunc gprintf sprintf strlen strstrt substr strftime138syn keyword gnuplotFunc strptime system word words139 140" other functions141syn keyword gnuplotFunc column columnhead columnheader defined exists142syn keyword gnuplotFunc hsv2rgb stringcolumn timecolumn tm_hour tm_mday143syn keyword gnuplotFunc tm_min tm_mon tm_sec tm_wday tm_yday tm_year144syn keyword gnuplotFunc time valid value145 146" ---- Statements ---- "147 148" common (builtin) variable names149syn keyword gnuplotKeyword x y t u v z s150 151" conditionals152syn keyword gnuplotConditional if else153 154" repeats155syn keyword gnuplotRepeat do for while156 157" operators158syn match gnuplotOperator "[-+*/^|&?:]"159syn match gnuplotOperator "\*\*"160syn match gnuplotOperator "&&"161syn match gnuplotOperator "||"162 163" Keywords164 165" keywords for 'fit' command166syn keyword gnuplotKeyword via z x:z x:z:s x:y:z:s167syn keyword gnuplotKeyword x:y:t:z:s x:y:t:u:z:s x:y:t:u:v:z:s168 169" keywords for 'plot' command170" 'axes' keyword171syn keyword gnuplotKeyword axes x1y1 x1y2 x2y1 x2y2172" 'binary' keyword173syn keyword gnuplotKeyword binary matrix general array record format endian174syn keyword gnuplotKeyword filetype avs edf png scan transpose dx dy dz175syn keyword gnuplotKeyword flipx flipy flipz origin center rotate using176syn keyword gnuplotKeyword perpendicular skip every177" datafile keywords178syn keyword gnuplotKeyword binary nonuniform matrix index every using179syn keyword gnuplotKeyword smooth volatile noautoscale every index180" 'smooth' keywords181syn keyword gnuplotKeyword unique frequency cumulative cnormal kdensity182syn keyword gnuplotKeyword csplines acsplines bezer sbezier183" deprecated 'thru' keyword184syn keyword gnuplotError thru185" 'using' keyword186syn keyword gnuplotKeyword using u xticlabels yticlabels zticlabels187syn keyword gnuplotKeyword x2ticlabels y2ticlabels xtic ytic ztic188" 'errorbars' keywords189syn keyword gnuplotKeyword errorbars xerrorbars yerrorbars xyerrorbars190" 'errorlines' keywords191syn keyword gnuplotKeyword errorlines xerrorlines yerrorlines xyerrorlines192" 'title' keywords193syn keyword gnuplotKeyword title t tit notitle columnheader at beginning194syn keyword gnuplotKeyword end195" 'with' keywords196syn keyword gnuplotKeyword with w linestyle ls linetype lt linewidth197syn keyword gnuplotKeyword lw linecolor lc pointtype pt pointsize ps198syn keyword gnuplotKeyword fill fs nohidden3d nocontours nosurface palette199" styles for 'with'200syn keyword gnuplotKeyword lines l points p linespoints lp surface dots201syn keyword gnuplotKeyword impulses labels vectors steps fsteps histeps202syn keyword gnuplotKeyword errorbars errorlines financebars xerrorbars203syn keyword gnuplotKeyword xerrorlines xyerrorbars yerrorbars yerrorlines204syn keyword gnuplotKeyword boxes boxerrorbars boxxyerrorbars boxplot205syn keyword gnuplotKeyword candlesticks circles ellipses filledcurves206syn keyword gnuplotKeyword histogram image rgbimage rgbalpha pm3d variable207 208" keywords for 'save' command209syn keyword gnuplotKeyword save functions func variables all var terminal210syn keyword gnuplotKeyword term set211 212" keywords for 'set/show' command213" set angles214syn keyword gnuplotKeyword angles degrees deg radians rad215" set arrow216syn keyword gnuplotKeyword arrow from to rto length angle arrowstyle as217syn keyword gnuplotKeyword nohead head backhead heads size filled empty218syn keyword gnuplotKeyword nofilled front back linestyle linetype linewidth219" set autoscale220" TODO regexp here221syn keyword gnuplotKeyword autoscale x y z cb x2 y2 zy min max fixmin222syn keyword gnuplotKeyword fixmax fix keepfix noextend223" set bars224syn keyword gnuplotKeyword bars small large fullwidth front back225" set bind226syn keyword gnuplotKeyword bind227" set margins228" TODO regexp229syn keyword gnuplotKeyword margin bmargin lmargin rmargin tmargin230" set border231syn keyword gnuplotKeyword border front back232" set boxwidth233syn keyword gnuplotKeyword boxwidth absolute relative234" deprecated set clabel235syn keyword gnuplotError clabel236" set clip237syn keyword gnuplotKeyword clip points one two238" set cntrlabel239syn keyword gnuplotKeyword cntrlabel format font start interval onecolor240" set cntrparam241syn keyword gnuplotKeyword cntrparam linear cubicspline bspline points242syn keyword gnuplotKeyword order levels auto discrete incremental243" set colorbox244syn keyword gnuplotKeyword colorbox vertical horizontal default user origin245syn keyword gnuplotKeyword size front back noborder bdefault border246" show colornames247syn keyword gnuplotKeyword colornames248" set contour249syn keyword gnuplotKeyword contour base surface both250" set datafile251syn keyword gnuplotKeyword datafile fortran nofpe_trap missing separator252syn keyword gnuplotKeyword whitespace tab comma commentschars binary253" set decimalsign254syn keyword gnuplotKeyword decimalsign locale255" set dgrid3d256syn keyword gnuplotKeyword dgrid3d splines qnorm gauss cauchy exp box hann257syn keyword gnuplotKeyword kdensity258" set dummy259syn keyword gnuplotKeyword dummy260" set encoding261syn keyword gnuplotKeyword encoding default iso_8859_1 iso_8859_15262syn keyword gnuplotKeyword iso_8859_2 iso_8859_9 koi8r koi8u cp437 cp850263syn keyword gnuplotKeyword cp852 cp950 cp1250 cp1251 cp1254 sjis utf8264" set fit265syn keyword gnuplotKeyword fit logfile default quiet noquiet results brief266syn keyword gnuplotKeyword verbose errorvariables noerrorvariables267syn keyword gnuplotKeyword errorscaling noerrorscaling prescale noprescale268syn keyword gnuplotKeyword maxiter none limit limit_abs start-lambda script269syn keyword gnuplotKeyword lambda-factor270" set fontpath271syn keyword gnuplotKeyword fontpath272" set format273syn keyword gnuplotKeyword format274" show functions275syn keyword gnuplotKeyword functions276" set grid277syn keyword gnuplotKeyword grid polar layerdefault xtics ytics ztics x2tics278syn keyword gnuplotKeyword y2tics cbtics mxtics mytics mztics mx2tics279syn keyword gnuplotKeyword my2tics mcbtics xmtics ymtics zmtics x2mtics280syn keyword gnuplotKeyword y2mtics cbmtics noxtics noytics noztics nox2tics281syn keyword gnuplotKeyword noy2tics nocbtics nomxtics nomytics nomztics282syn keyword gnuplotKeyword nomx2tics nomy2tics nomcbtics283" set hidden3d284syn keyword gnuplotKeyword hidden3d offset trianglepattern undefined285syn keyword gnuplotKeyword altdiagonal noaltdiagonal bentover nobentover286syn keyword gnuplotKeyword noundefined287" set historysize288syn keyword gnuplotKeyword historysize289" set isosamples290syn keyword gnuplotKeyword isosamples291" set key292syn keyword gnuplotKeyword key on off inside outside at left right center293syn keyword gnuplotKeyword top bottom vertical horizontal Left Right294syn keyword gnuplotKeyword opaque noopaque reverse noreverse invert maxrows295syn keyword gnuplotKeyword noinvert samplen spacing width height autotitle296syn keyword gnuplotKeyword noautotitle title enhanced noenhanced font297syn keyword gnuplotKeyword textcolor box nobox linetype linewidth maxcols298" set label299syn keyword gnuplotKeyword label left center right rotate norotate by font300syn keyword gnuplotKeyword front back textcolor point nopoint offset boxed301syn keyword gnuplotKeyword hypertext302" set linetype303syn keyword gnuplotKeyword linetype304" set link305syn keyword gnuplotKeyword link via inverse306" set loadpath307syn keyword gnuplotKeyword loadpath308" set locale309syn keyword gnuplotKeyword locale310" set logscale311syn keyword gnuplotKeyword logscale log312" set macros313syn keyword gnuplotKeyword macros314" set mapping315syn keyword gnuplotKeyword mapping cartesian spherical cylindrical316" set mouse317syn keyword gnuplotKeyword mouse doubleclick nodoubleclick zoomcoordinates318syn keyword gnuplotKeyword nozoomcoordinates ruler noruler at polardistance319syn keyword gnuplotKeyword nopolardistance deg tan format clipboardformat320syn keyword gnuplotKeyword mouseformat labels nolabels zoomjump nozoomjump321syn keyword gnuplotKeyword verbose noverbose322" set multiplot323syn keyword gnuplotKeyword multiplot title font layout rowsfirst downwards324syn keyword gnuplotKeyword downwards upwards scale offset325" set object326syn keyword gnuplotKeyword object behind fillcolor fc fs rectangle ellipse327syn keyword gnuplotKeyword circle polygon at center size units xy xx yy to328syn keyword gnuplotKeyword from329" set offsets330syn keyword gnuplotKeyword offsets331" set origin332syn keyword gnuplotKeyword origin333" set output334syn keyword gnuplotKeyword output335" set parametric336syn keyword gnuplotKeyword parametric337" show plot338syn keyword gnuplotKeyword plot add2history339" set pm3d340syn keyword gnuplotKeyword hidden3d interpolate scansautomatic scansforward341syn keyword gnuplotKeyword scansbackward depthorder flush begin center end342syn keyword gnuplotKeyword ftriangles noftriangles clip1in clip4in mean map343syn keyword gnuplotKeyword corners2color geomean harmean rms median min max344syn keyword gnuplotKeyword c1 c2 c3 c4 pm3d at nohidden3d implicit explicit345" set palette346syn keyword gnuplotKeyword palette gray color gamma rgbformulae defined347syn keyword gnuplotKeyword file functions cubehelix start cycles saturation348syn keyword gnuplotKeyword model RGB HSV CMY YIQ XYZ positive negative349syn keyword gnuplotKeyword nops_allcF ps_allcF maxcolors float int gradient350syn keyword gnuplotKeyword fit2rgbformulae rgbformulae351" set pointintervalbox352syn keyword gnuplotKeyword pointintervalbox353" set pointsize354syn keyword gnuplotKeyword pointsize355" set polar356syn keyword gnuplotKeyword polar357" set print358syn keyword gnuplotKeyword print append359" set psdir360syn keyword gnuplotKeyword psdir361" set raxis362syn keyword gnuplotKeyword raxis rrange rtics363" set samples364syn keyword gnuplotKeyword samples365" set size366syn keyword gnuplotKeyword size square nosquare ratio noratio367" set style368syn keyword gnuplotKeyword style arrow auto back border boxplot369syn keyword gnuplotKeyword candlesticks circle clustered columnstacked data370syn keyword gnuplotKeyword default ellipse empty fill[ed] financebars371syn keyword gnuplotKeyword fraction front function gap graph head[s]372syn keyword gnuplotKeyword histogram increment labels lc line linecolor373syn keyword gnuplotKeyword linetype linewidth lt lw noborder nofilled374syn keyword gnuplotKeyword nohead nooutliers nowedge off opaque outliers375syn keyword gnuplotKeyword palette pattern pi pointinterval pointsize376syn keyword gnuplotKeyword pointtype ps pt radius range rectangle377syn keyword gnuplotKeyword rowstacked screen separation size solid sorted378syn keyword gnuplotKeyword textbox units unsorted userstyles wedge379syn keyword gnuplotKeyword x x2 xx xy yy380" set surface381syn keyword gnuplotKeyword surface implicit explicit382" set table383syn keyword gnuplotKeyword table384" set terminal (list of terminals)385syn keyword gnuplotKeyword terminal term push pop aed512 aed767 aifm aqua386syn keyword gnuplotKeyword be cairo cairolatex canvas cgm context corel387syn keyword gnuplotKeyword debug dumb dxf dxy800a eepic emf emxvga epscairo388syn keyword gnuplotKeyword epslatex epson_180dpi excl fig ggi gif gpic hpgl389syn keyword gnuplotKeyword grass hp2623a hp2648 hp500c hpljii hppj imagen390syn keyword gnuplotKeyword jpeg kyo latex linux lua mf mif mp next openstep391syn keyword gnuplotKeyword pbm pdf pdfcairo pm png pngcairo postscript392syn keyword gnuplotKeyword pslatex pstex pstricks qms qt regis sun svg svga393syn keyword gnuplotKeyword tek40 tek410x texdraw tgif tikz tkcanvas tpic394syn keyword gnuplotKeyword vgagl vws vx384 windows wx wxt x11 xlib395" keywords for 'set terminal'396syn keyword gnuplotKeyword color monochrome dashlength dl eps pdf fontscale397syn keyword gnuplotKeyword standalone blacktext colortext colourtext header398syn keyword gnuplotKeyword noheader mono color solid dashed notransparent399syn keyword gnuplotKeyword crop crop background input rounded butt square400syn keyword gnuplotKeyword size fsize standalone name jsdir defaultsize401syn keyword gnuplotKeyword timestamp notimestamp colour mitered beveled402syn keyword gnuplotKeyword round squared palfuncparam blacktext nec_cp6403syn keyword gnuplotKeyword mppoints inlineimages externalimages defaultfont404syn keyword gnuplotKeyword aspect feed nofeed rotate small tiny standalone405syn keyword gnuplotKeyword oldstyle newstyle level1 leveldefault level3406syn keyword gnuplotKeyword background nobackground solid clip noclip407syn keyword gnuplotKeyword colortext colourtext epson_60dpi epson_lx800408syn keyword gnuplotKeyword okidata starc tandy_60dpi dpu414 nec_cp6 draft409syn keyword gnuplotKeyword medium large normal landscape portrait big410syn keyword gnuplotKeyword inches pointsmax textspecial texthidden411syn keyword gnuplotKeyword thickness depth version acceleration giant412syn keyword gnuplotKeyword delay loop optimize nooptimize pspoints413syn keyword gnuplotKeyword FNT9X17 FNT13X25 interlace nointerlace courier414syn keyword gnuplotKeyword originreset nooriginreset gparrows nogparrows415syn keyword gnuplotKeyword picenvironment nopicenvironment tightboundingbox416syn keyword gnuplotKeyword notightboundingbox charsize gppoints nogppoints417syn keyword gnuplotKeyword fontscale textscale fulldoc nofulldoc standalone418syn keyword gnuplotKeyword preamble header tikzplot tikzarrows notikzarrows419syn keyword gnuplotKeyword cmykimages externalimages noexternalimages420syn keyword gnuplotKeyword polyline vectors magnification psnfss nopsnfss421syn keyword gnuplotKeyword psnfss-version7 prologues a4paper amstex fname422syn keyword gnuplotKeyword fsize server persist widelines interlace423syn keyword gnuplotKeyword truecolor notruecolor defaultplex simplex duplex424syn keyword gnuplotKeyword nofontfiles adobeglyphnames noadobeglyphnames425syn keyword gnuplotKeyword nostandalone metric textrigid animate nopspoints426syn keyword gnuplotKeyword hpdj FNT5X9 roman emtex rgbimages bitmap427syn keyword gnuplotKeyword nobitmap providevars nointerlace add delete428syn keyword gnuplotKeyword auxfile hacktext unit raise palfuncparam429syn keyword gnuplotKeyword noauxfile nohacktext nounit noraise ctrl noctrl430syn keyword gnuplotKeyword close widget fixed dynamic tek40xx vttek431syn keyword gnuplotKeyword kc-tek40xx km-tek40xx bitgraph perltk432syn keyword gnuplotKeyword interactive red green blue interpolate mode433syn keyword gnuplotKeyword position ctrlq replotonresize position noctrlq434syn keyword gnuplotKeyword noreplotonresize435" set termoption436syn keyword gnuplotKeyword termoption font fontscale solid dashed437" set tics438syn keyword gnuplotKeyword tics add axis border mirror nomirror in out439syn keyword gnuplotKeyword scale rotate norotate by offset nooffset left440syn keyword gnuplotKeyword autojustify format font textcolor right center441" deprecated set ticslevel442syn keyword gnuplotError ticslevel ticscale443" set timestamp444syn keyword gnuplotKeyword timestamp top bottom offset font445" set timefmt446syn keyword gnuplotKeyword timefmt447" set title448syn keyword gnuplotKeyword title offset font textcolor tc449" set ranges450syn keyword gnuplotKeyword trange urange vrange451" show variables452syn keyword gnuplotKeyword variables453" show version454syn keyword gnuplotKeyword version455" set view456syn keyword gnuplotKeyword view map equal noequal xy xyz457" set x2data458syn keyword gnuplotKeyword xdata ydata zdata x2data y2data cbdata xdtics459syn keyword gnuplotKeyword ydtics zdtics x2dtics y2dtics cbdtics xzeroaxis460syn keyword gnuplotKeyword yzeroaxis zzeroaxis x2zeroaxis y2zeroaxis461syn keyword gnuplotKeyword cbzeroaxis time geographic462" set label463syn keyword gnuplotKeyword xlabel ylabel zlabel x2label y2label cblabel464syn keyword gnuplotKeyword offset font textcolor by parallel465" set range466syn keyword gnuplotKeyword xrange yrange zrange x2range y2range cbrange467" set xyplane468syn keyword gnuplotKeyword xyplane469" set zeroaxis470" set zero471syn keyword gnuplotKeyword zero472" set zeroaxis473syn keyword gnuplotKeyword zeroaxis474 475" keywords for 'stats' command476syn keyword gnuplotKeyword nooutput477 478" keywords for 'test' command479syn keyword gnuplotKeyword terminal palette rgb rbg grb gbr brg bgr480 481" The transparent gnuplot keyword cannot use 'syn keyword' as transparent482" has a special meaning in :syntax commands.483syn match gnuplotKeyword "\<transparent\>"484 485" ---- Macros ---- "486 487syn match gnuplotMacro "@\w*"488 489" ---- Todos ---- "490 491syn keyword gnuplotTodo contained TODO FIXME XXX492 493" ---- Types: gnuplot commands ---- "494 495" I set the commands as Types to distinguish them visually from keywords for the496" commands. This comes at the end of the syntax file because some commands497" are redundant with keywords. It's probably too much trouble to go and498" create special regions for each redundant keyword/command pair, which means499" that some keywords (e.g. 'p') will be highlighted as commands.500 501syn keyword gnuplotStatement cd call clear evaluate exit fit help history502syn keyword gnuplotStatement load lower pause plot p print pwd quit raise503syn keyword gnuplotStatement refresh replot rep reread reset save set show504syn keyword gnuplotStatement shell splot spstats stats system test undefine505syn keyword gnuplotStatement unset update506 507" ---- Define the default highlighting ---- "508" Only when an item doesn't have highlighting yet509 510" ---- Comments ---- "511hi def link gnuplotComment Comment512 513" ---- Constants ---- "514hi def link gnuplotString String515hi def link gnuplotNumber Number516hi def link gnuplotFloat Float517 518" ---- Identifiers ---- "519hi def link gnuplotIdentifier Identifier520 521" ---- Statements ---- "522hi def link gnuplotConditional Conditional523hi def link gnuplotRepeat Repeat524hi def link gnuplotKeyword Keyword525hi def link gnuplotOperator Operator526 527" ---- PreProcs ---- "528hi def link gnuplotMacro Macro529 530" ---- Types ---- "531hi def link gnuplotStatement Type532hi def link gnuplotFunc Identifier533 534" ---- Specials ---- "535hi def link gnuplotSpecial Special536hi def link gnuplotUnit Special537hi def link gnuplotExternal Special538 539" ---- Errors ---- "540hi def link gnuplotError Error541hi def link gnuplotOctalError Error542 543" ---- Todos ---- "544hi def link gnuplotTodo Todo545 546 547let b:current_syntax = "gnuplot"548 549" vim: ts=8550 