Mercurial > vim
annotate runtime/syntax/jgraph.vim @ 32454:db97ccaaa7c8 v9.0.1558
patch 9.0.1558: wrong error for unreachable code after :throw
Commit: https://github.com/vim/vim/commit/a2c0028fdf8dcf0408e27be730ac0e691ef9559b
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 14 22:05:15 2023 +0100
patch 9.0.1558: wrong error for unreachable code after :throw
Problem: Wrong error for unreachable code after :throw.
Solution: Adjust the error message.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 14 May 2023 23:15:03 +0200 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
7 | 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 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
8 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
9 if exists("b:current_syntax") |
7 | 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. | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
36 " Only when an item doesn't have highlighting yet |
7 | 37 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
38 hi def link jgraphComment Comment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
39 hi def link jgraphCmd Identifier |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
40 hi def link jgraphType Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
41 hi def link jgraphNumber Number |
7 | 42 |
43 | |
44 | |
45 let b:current_syntax = "jgraph" |