neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

jgraph.vim (1212B)


      1 " Vim syntax file
      2 " Language:	jgraph (graph plotting utility)
      3 " Maintainer:	Jonas Munsin jmunsin@iki.fi
      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
      9 if exists("b:current_syntax")
     10  finish
     11 endif
     12 
     13 syn case match
     14 
     15 " comments
     16 syn region	jgraphComment	start="(\* " end=" \*)"
     17 
     18 syn keyword	jgraphCmd	newcurve newgraph marktype
     19 syn keyword	jgraphType	xaxis yaxis
     20 
     21 syn keyword	jgraphType	circle box diamond triangle x cross ellipse
     22 syn keyword	jgraphType	xbar ybar text postscript eps none general
     23 
     24 syn keyword	jgraphType	solid dotted dashed longdash dotdash dodotdash
     25 syn keyword	jgraphType	dotdotdashdash pts
     26 
     27 "integer number, or floating point number without a dot. - or no -
     28 syn match  jgraphNumber		 "\<-\=\d\+\>"
     29 "floating point number, with dot - or no -
     30 syn match  jgraphNumber		 "\<-\=\d\+\.\d*\>"
     31 "floating point number, starting with a dot - or no -
     32 syn match  jgraphNumber		 "\-\=\.\d\+\>"
     33 
     34 
     35 " Define the default highlighting.
     36 " Only when an item doesn't have highlighting yet
     37 
     38 hi def link jgraphComment	Comment
     39 hi def link jgraphCmd	Identifier
     40 hi def link jgraphType	Type
     41 hi def link jgraphNumber	Number
     42 
     43 
     44 
     45 let b:current_syntax = "jgraph"