xref: /vim-8.2.3635/runtime/syntax/jgraph.vim (revision f37506f6)
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
37
38hi def link jgraphComment	Comment
39hi def link jgraphCmd	Identifier
40hi def link jgraphType	Type
41hi def link jgraphNumber	Number
42
43
44
45let b:current_syntax = "jgraph"
46