annotate runtime/syntax/abc.vim @ 896:354ea37841d1 v7.0.022

updated for version 7.0-022
author vimboss
date Tue, 20 Jun 2006 19:10:43 +0000
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: abc music notation language
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: James Allwright <J.R.Allwright@westminster.ac.uk>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " URL: http://perun.hscs.wmin.ac.uk/~jra/vim/syntax/abc.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Last Change: 27th April 2001
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 " tags
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn region abcGuitarChord start=+"[A-G]+ end=+"+ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn match abcNote "z[1-9]*[0-9]*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn match abcNote "z[1-9]*[0-9]*/[248]\=" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn match abcNote "[=_\^]\{,2}[A-G],*[1-9]*[0-9]*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn match abcNote "[=_\^]\{,2}[A-G],*[1-9]*[0-9]*/[248]\=" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match abcNote "[=_\^]\{,2}[a-g]'*[1-9]*[0-9]*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match abcNote "[=_\^]\{,2}[a-g]'*[1-9]*[0-9]*/[248]\=" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match abcBar "|" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match abcBar "[:|][:|]" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match abcBar ":|2" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match abcBar "|1" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn match abcBar "\[[12]" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match abcTuple "([1-9]\+:\=[0-9]*:\=[0-9]*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match abcBroken "<\|<<\|<<<\|>\|>>\|>>>" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn match abcTie "-"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match abcHeadField "^[A-EGHIK-TVWXZ]:.*$" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn match abcBodyField "^[KLMPQWVw]:.*$" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn region abcHeader start="^X:" end="^K:.*$" contained contains=abcHeadField,abcComment keepend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn region abcTune start="^X:" end="^ *$" contains=abcHeader,abcComment,abcBar,abcNote,abcBodyField,abcGuitarChord,abcTuple,abcBroken,abcTie
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match abcComment "%.*$"
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_abc_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_abc_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 abcComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 HiLink abcHeadField Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 HiLink abcBodyField Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 HiLink abcBar Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 HiLink abcTuple Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 HiLink abcBroken Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 HiLink abcTie Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 HiLink abcGuitarChord Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 HiLink abcNote Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 let b:current_syntax = "abc"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 " vim: ts=4