home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / mac / vim55rt.sit / runtime / syntax / gnuplot.vim < prev    next >
Encoding:
Text File  |  1999-09-25  |  4.2 KB  |  91 lines  |  [TEXT/VIM!]

  1. " Vim syntax file
  2. " Language:    gnuplot
  3. " Maintainer:    John Hoelzel <johnh51@earthlink.net>
  4. " Last change:    1999 Jun 14
  5.  
  6. " Remove any old syntax stuff hanging around
  7. syn clear
  8.  
  9. " commands
  10. syn keyword gnuplotStatement    cd call clear exit set plot splot help
  11. syn keyword gnuplotStatement    load pause quit fit replot quit if
  12. syn keyword gnuplotStatement    print pwd reread reset save show test !
  13. syn keyword gnuplotConditional    if
  14. " numbers fm c.vim
  15. "    integer number, or floating point number without a dot and with "f".
  16. syn case    ignore
  17. syn match   gnuplotNumber    "\<[0-9]\+\(u\=l\=\|lu\|f\)\>"
  18. "    floating point number, with dot, optional exponent
  19. syn match   gnuplotFloat    "\<[0-9]\+\.[0-9]*\(e[-+]\=[0-9]\+\)\=[fl]\=\>"
  20. "    floating point number, starting with a dot, optional exponent
  21. syn match   gnuplotFloat    "\.[0-9]\+\(e[-+]\=[0-9]\+\)\=[fl]\=\>"
  22. "    floating point number, without dot, with exponent
  23. syn match   gnuplotFloat    "\<[0-9]\+e[-+]\=[0-9]\+[fl]\=\>"
  24. "    hex number
  25. syn match   gnuplotNumber    "\<0x[0-9a-f]\+\(u\=l\=\|lu\)\>"
  26. syn case    match
  27. "    flag an octal number with wrong digits by not hilighting
  28. syn match   gnuplotOctalError    "\<0[0-7]*[89]"
  29.  
  30. " plot args
  31. syn keyword gnuplotType        using title notit tit with wi steps fsteps fs
  32. syn keyword gnuplotType        linespoints lines li via
  33. " funcs
  34. syn keyword gnuplotType        abs acos arg asin atan besj0 besj1 besy0 besy1
  35. syn keyword gnuplotType        ceil column cos cosh erf erfc exp floor gamma
  36. syn keyword gnuplotType        ibeta inverf igamma imag invnorm int lgamma
  37. syn keyword gnuplotType        log log10 norm rand real sgn sin sinh sqrt tan
  38. syn keyword gnuplotType        tanh valid
  39. " set vars - comment out items you rarely use if they slow you up too much.
  40. syn keyword gnuplotType        xdata timefmt grid noytics ytics notit tit fs
  41. syn keyword gnuplotType        logscale time mxtics style
  42. syn keyword gnuplotType        size origin multiplot xtics xrange yrange size
  43. syn keyword gnuplotType        binary matrix index every thru using smooth
  44. syn keyword gnuplotType        angles degrees arrow noarrow autoscale
  45. syn keyword gnuplotType        noautoscale bar border noborder boxwidth
  46. syn keyword gnuplotType        clabel noclabel clip noclip cntrparam contour
  47. syn keyword gnuplotType        dgrid3d nodgrid3d dummy encoding format
  48. syn keyword gnuplotType        function grid hidden3d isosamples key nokey
  49. syn keyword gnuplotType        label nolabel logscale nologscale missing
  50. syn keyword gnuplotType        mapping margin bmargin lmargin rmargin tmargin
  51. syn keyword gnuplotType        multiplot nomultiplot mxtics nomxtics mytics
  52. syn keyword gnuplotType        nomytics mztics nomztics mx2tics nomx2tics
  53. syn keyword gnuplotType        my2tics nomy2tics offsets origin output
  54. syn keyword gnuplotType        parametric noparametric pointsize polar nopolar
  55. syn keyword gnuplotType        xrange yrange zrange x2range y2range rrange
  56. syn keyword gnuplotType        trange urange vrange samples size terminal
  57. syn keyword gnuplotType        bezier boxerrorbars boxes bargraph
  58. syn keyword gnuplotType        boxxyerrorbars csplines dots fsteps impulses
  59. syn keyword gnuplotType        lines linespoints points sbezier splines steps
  60. syn keyword gnuplotType        vectors xerrorbars xyerrorbars yerrorbars
  61. syn keyword gnuplotType        errorbars surface
  62. syn keyword gnuplotType        tics ticslevel ticscale time timefmt title view
  63. syn keyword gnuplotType        xdata xdtics noxdtics ydtics noydtics zdtics
  64. syn keyword gnuplotType        nozdtics x2dtics nox2dtics y2dtics noy2dtics
  65. syn keyword gnuplotType        xlabel ylabel zlabel x2label y2label xmtics
  66. syn keyword gnuplotType        noxmtics ymtics noymtics zmtics nozmtics x2mtics
  67. syn keyword gnuplotType        nox2mtics y2mtics noy2mtics xtics noxtics ytics
  68. syn keyword gnuplotType        noytics ztics noztics x2tics nox2tics y2tics
  69. syn keyword gnuplotType        noy2tics zero zeroaxis nozeroaxis xzeroaxis
  70. syn keyword gnuplotType        noxzeroaxis yzeroaxis noyzeroaxis x2zeroaxis
  71. syn keyword gnuplotType        nox2zeroaxis y2zeroaxis noy2zeroaxis angles
  72.  
  73. " comments + strings
  74. syn region gnuplotComment    start="\"" end="\""
  75. syn region gnuplotComment    start="^\s*#\s*" skip="\\$" end="$"
  76.  
  77. if !exists("did_gnuplot_syntax_inits")
  78.   let did_gnuplot_syntax_inits = 1
  79.   hi link gnuplotStatement    Statement
  80.   hi link gnuplotConditional    Conditional
  81.   hi link gnuplotNumber        Number
  82.   hi link gnuplotFloat        Float
  83.   hi link gnuplotOctalError    Error
  84.   hi link gnuplotType        Type
  85.   hi link gnuplotComment    Comment
  86. endif
  87.  
  88. let b:current_syntax = "gnuplot"
  89.  
  90. " vim: ts=8
  91.