Mercurial > vim
annotate runtime/syntax/abc.vim @ 10864:49b0c44264a1
Added tag v8.0.0321 for changeset 9130644aec5c226c516b5666e4b96116bf293580
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 09 Feb 2017 20:30:05 +0100 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: abc music notation language | |
3 " Maintainer: James Allwright <J.R.Allwright@westminster.ac.uk> | |
4 " URL: http://perun.hscs.wmin.ac.uk/~jra/vim/syntax/abc.vim | |
5 " Last Change: 27th April 2001 | |
6 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
7 " 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
|
8 if exists("b:current_syntax") |
7 | 9 finish |
10 endif | |
11 | |
12 " tags | |
13 syn region abcGuitarChord start=+"[A-G]+ end=+"+ contained | |
14 syn match abcNote "z[1-9]*[0-9]*" contained | |
15 syn match abcNote "z[1-9]*[0-9]*/[248]\=" contained | |
16 syn match abcNote "[=_\^]\{,2}[A-G],*[1-9]*[0-9]*" contained | |
17 syn match abcNote "[=_\^]\{,2}[A-G],*[1-9]*[0-9]*/[248]\=" contained | |
18 syn match abcNote "[=_\^]\{,2}[a-g]'*[1-9]*[0-9]*" contained | |
19 syn match abcNote "[=_\^]\{,2}[a-g]'*[1-9]*[0-9]*/[248]\=" contained | |
20 syn match abcBar "|" contained | |
21 syn match abcBar "[:|][:|]" contained | |
22 syn match abcBar ":|2" contained | |
23 syn match abcBar "|1" contained | |
24 syn match abcBar "\[[12]" contained | |
25 syn match abcTuple "([1-9]\+:\=[0-9]*:\=[0-9]*" contained | |
26 syn match abcBroken "<\|<<\|<<<\|>\|>>\|>>>" contained | |
27 syn match abcTie "-" | |
28 syn match abcHeadField "^[A-EGHIK-TVWXZ]:.*$" contained | |
29 syn match abcBodyField "^[KLMPQWVw]:.*$" contained | |
30 syn region abcHeader start="^X:" end="^K:.*$" contained contains=abcHeadField,abcComment keepend | |
31 syn region abcTune start="^X:" end="^ *$" contains=abcHeader,abcComment,abcBar,abcNote,abcBodyField,abcGuitarChord,abcTuple,abcBroken,abcTie | |
32 syn match abcComment "%.*$" | |
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 abcComment Comment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
39 hi def link abcHeadField Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
40 hi def link abcBodyField Special |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
41 hi def link abcBar Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
42 hi def link abcTuple Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
43 hi def link abcBroken Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
44 hi def link abcTie Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
45 hi def link abcGuitarChord Identifier |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
46 hi def link abcNote Constant |
7 | 47 |
48 | |
49 let b:current_syntax = "abc" | |
50 | |
51 " vim: ts=4 |