xref: /vim-8.2.3635/runtime/syntax/jgraph.vim (revision 89bcfda6)
1" Vim syntax file
2" Language:	jgraph (graph plotting utility)
3" Maintainer:	Jonas Munsin [email protected]
4" Last Change:	2003 May 04
5" this syntax file is not yet complete
6
7
8" quit when a syntax file was already loaded
9if exists("b:current_syntax")
10  finish
11endif
12
13syn case match
14
15" comments
16syn region	jgraphComment	start="(\* " end=" \*)"
17
18syn keyword	jgraphCmd	newcurve newgraph marktype
19syn keyword	jgraphType	xaxis yaxis
20
21syn keyword	jgraphType	circle box diamond triangle x cross ellipse
22syn keyword	jgraphType	xbar ybar text postscript eps none general
23
24syn keyword	jgraphType	solid dotted dashed longdash dotdash dodotdash
25syn keyword	jgraphType	dotdotdashdash pts
26
27"integer number, or floating point number without a dot. - or no -
28syn match  jgraphNumber		 "\<-\=\d\+\>"
29"floating point number, with dot - or no -
30syn match  jgraphNumber		 "\<-\=\d\+\.\d*\>"
31"floating point number, starting with a dot - or no -
32syn match  jgraphNumber		 "\-\=\.\d\+\>"
33
34
35" Define the default highlighting.
36" Only when an item doesn't have highlighting yet
37command -nargs=+ HiLink hi def link <args>
38
39HiLink jgraphComment	Comment
40HiLink jgraphCmd	Identifier
41HiLink jgraphType	Type
42HiLink jgraphNumber	Number
43
44delcommand HiLink
45
46
47let b:current_syntax = "jgraph"
48