2 " Language: jgraph (graph plotting utility)
3 " Maintainer: Jonas Munsin jmunsin@iki.fi
4 " Last Change: 2001 May 09
5 " this syntax file is not yet complete
8 " For version 5.x: Clear all syntax items
9 " For version 6.x: Quit when a syntax file was already loaded
12 elseif exists("b:current_syntax")
19 syn region jgraphComment start="(\* " end=" \*)"
21 syn keyword jgraphCmd newcurve newgraph marktype
22 syn keyword jgraphType xaxis yaxis
24 syn keyword jgraphType circle box diamond triangle x cross ellipse
25 syn keyword jgraphType xbar ybar text postscript eps none general
27 syn keyword jgraphType solid dotted dashed longdash dotdash dodotdash
28 syn keyword jgraphType dotdotdashdash pts
30 "integer number, or floating point number without a dot. - or no -
31 syn match jgraphNumber "\<-\=\d\+\>"
32 "floating point number, with dot - or no -
33 syn match jgraphNumber "\<-\=\d\+\.\d*\>"
34 "floating point number, starting with a dot - or no -
35 syn match jgraphNumber "\-\=\.\d\+\>"
38 " Define the default highlighting.
39 " For version 5.7 and earlier: only when not done already
40 " For version 5.8 and later: only when an item doesn't have highlighting yet
41 if version >= 508 || !exists("did_jgraph_syn_inits")
43 let did_jgraph_syn_inits = 1
44 command -nargs=+ HiLink hi link <args>
46 command -nargs=+ HiLink hi def link <args>
49 HiLink jgraphComment Comment
50 HiLink jgraphCmd Identifier
51 HiLink jgraphType Type
52 HiLink jgraphNumber Number
58 let b:current_syntax = "jgraph"