Mercurial > vim
annotate runtime/syntax/abc.vim @ 33603:5eab5c00bb7c v9.0.2045
patch 9.0.2045: tests: checking for swap files takes time
Commit: https://github.com/vim/vim/commit/a0e1f06f04da3444e278ddf47e2ea3d5857a7dec
Author: zeertzjq <zeertzjq@outlook.com>
Date: Wed Oct 18 11:50:37 2023 +0200
patch 9.0.2045: tests: checking for swap files takes time
Problem: tests: checking for swap files takes time
Solution: don't check for swap files when test has been skipped
Check for swap files takes a considerable about of time, so don't do
that for skipped tests to avoid wasting time.
closes: #13371
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 18 Oct 2023 12:00:06 +0200 |
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 |