annotate runtime/syntax/jgraph.vim @ 8653:d80edead9675 v7.4.1616

commit https://github.com/vim/vim/commit/ac74d5e86cd16b42e81ba48f58f3d45c72758248 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 20 14:31:00 2016 +0100 patch 7.4.1616 Problem: Malformed channel request causes a hang. Solution: Drop malformed message. (Damien)
author Christian Brabandt <cb@256bit.org>
date Sun, 20 Mar 2016 14:45:04 +0100
parents 3fc0f57ecb91
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: jgraph (graph plotting utility)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Jonas Munsin jmunsin@iki.fi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last Change: 2003 May 04
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " this syntax file is not yet complete
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn region jgraphComment start="(\* " end=" \*)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn keyword jgraphCmd newcurve newgraph marktype
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn keyword jgraphType xaxis yaxis
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn keyword jgraphType circle box diamond triangle x cross ellipse
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn keyword jgraphType xbar ybar text postscript eps none general
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword jgraphType solid dotted dashed longdash dotdash dodotdash
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword jgraphType dotdotdashdash pts
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 "integer number, or floating point number without a dot. - or no -
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match jgraphNumber "\<-\=\d\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 "floating point number, with dot - or no -
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn match jgraphNumber "\<-\=\d\+\.\d*\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 "floating point number, starting with a dot - or no -
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match jgraphNumber "\-\=\.\d\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 if version >= 508 || !exists("did_jgraph_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 let did_jgraph_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 HiLink jgraphComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 HiLink jgraphCmd Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 HiLink jgraphType Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 HiLink jgraphNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 let b:current_syntax = "jgraph"