annotate runtime/syntax/chordpro.vim @ 32465:83074077c0b1 v9.0.1564

patch 9.0.1564: display moves up and down with 'incsearch' and 'smoothscroll' Commit: https://github.com/vim/vim/commit/0222c2d103ad9298bec4dc8864cd80b4e7559db1 Author: Luuk van Baal <luukvbaal@gmail.com> Date: Thu May 18 13:26:57 2023 +0100 patch 9.0.1564: display moves up and down with 'incsearch' and 'smoothscroll' Problem: Display moves up and down with 'incsearch' and 'smoothscroll'. Solution: Do not check if w_skipcol changed. (Luuk van Baal, closes https://github.com/vim/vim/issues/12410, closes #12409)
author Bram Moolenaar <Bram@vim.org>
date Thu, 18 May 2023 14:30:09 +0200
parents 4d76b3e07c07
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
1 " Vim syntax file
28620
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
2 " Language: ChordPro 6 (https://www.chordpro.org)
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
3 " Maintainer: Niels Bo Andersen <niels@niboan.dk>
28620
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
4 " Last Change: 2022-04-15
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
5
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
6 " Quit when a syntax file was already loaded
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
7 if exists("b:current_syntax")
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
8 finish
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
9 endif
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
10
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
11 let s:cpo_save = &cpo
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
12 set cpo&vim
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
13
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
14 syn case ignore
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
15
28620
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
16 " Include embedded abc syntax
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
17 syn include @Abc syntax/abc.vim
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
18
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
19 " Lilypond and Pango syntaxes could be embedded as well, but they are not
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
20 " available in the distribution.
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
21
28620
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
22 " Directives without arguments
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
23 syn keyword chordproDirective contained nextgroup=chordproConditional
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
24 \ new_song ns
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
25 \ start_of_chorus soc
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
26 \ chorus
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
27 \ start_of_verse sov
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
28 \ start_of_bridge sob
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
29 \ start_of_tab sot
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
30 \ start_of_grid sog
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
31 \ start_of_abc
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
32 \ start_of_ly
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
33 \ end_of_chorus eoc
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
34 \ end_of_verse eov
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
35 \ end_of_bridge eob
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
36 \ end_of_tab eot
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
37 \ end_of_grid eog
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
38 \ end_of_abc
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
39 \ end_of_ly
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
40 \ new_page np
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
41 \ new_physical_page npp
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
42 \ column_break cb
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
43 \ grid g
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
44 \ no_grid ng
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
45 \ transpose
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
46 \ chordfont cf chordsize cs chordcolour
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
47 \ footerfont footersize footercolour
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
48 \ gridfont gridsize gridcolour
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
49 \ tabfont tabsize tabcolour
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
50 \ tocfont tocsize toccolour
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
51 \ textfont tf textsize ts textcolour
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
52 \ titlefont titlesize titlecolour
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
53
28620
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
54 " Directives with arguments. Some directives are in both groups, as they can
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
55 " be used both with and without arguments
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
56 syn keyword chordproDirWithArg contained nextgroup=chordproConditional
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
57 \ title t
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
58 \ subtitle st
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
59 \ sorttitle
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
60 \ artist
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
61 \ composer
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
62 \ lyricist
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
63 \ arranger
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
64 \ copyright
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
65 \ album
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
66 \ year
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
67 \ key
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
68 \ time
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
69 \ tempo
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
70 \ duration
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
71 \ capo
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
72 \ comment c
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
73 \ highlight
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
74 \ comment_italic ci
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
75 \ comment_box cb
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
76 \ image
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
77 \ start_of_chorus soc
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
78 \ chorus
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
79 \ start_of_verse sov
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
80 \ start_of_bridge sob
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
81 \ start_of_tab sot
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
82 \ start_of_grid sog
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
83 \ start_of_abc
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
84 \ start_of_ly
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
85 \ define
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
86 \ chord
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
87 \ transpose
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
88 \ chordfont cf chordsize cs chordcolour
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
89 \ footerfont footersize footercolour
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
90 \ gridfont gridsize gridcolour
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
91 \ tabfont tabsize tabcolour
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
92 \ tocfont tocsize toccolour
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
93 \ textfont tf textsize ts textcolour
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
94 \ titlefont titlesize titlecolour
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
95 \ pagetype
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
96 \ titles
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
97 \ columns col
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
98
28620
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
99 syn keyword chordproMetaKeyword contained meta
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
100 syn keyword chordproMetadata contained title sorttitle subtitle artist composer lyricist arranger copyright album year key time tempo duration capo
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
101 syn keyword chordproStandardMetadata contained songindex page pages pagerange today tuning instrument user
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
102 syn match chordproStandardMetadata /instrument\.type/ contained
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
103 syn match chordproStandardMetadata /instrument\.description/ contained
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
104 syn match chordproStandardMetadata /user\.name/ contained
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
105 syn match chordproStandardMetadata /user\.fullname/ contained
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
106
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
107 syn keyword chordproDefineKeyword contained frets fingers
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
108 syn match chordproDefineKeyword /base-fret/ contained
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
109
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
110 syn match chordproArgumentsNumber /\d\+/ contained
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
111
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
112 syn match chordproCustom /x_\w\+/ contained
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
113
28620
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
114 syn match chordproDirMatch /{\w\+\(-\w\+\)\?}/ contains=chordproDirective contained transparent
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
115 syn match chordproDirArgMatch /{\w\+\(-\w\+\)\?[: ]/ contains=chordproDirWithArg contained transparent
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
116 syn match chordproMetaMatch /{meta\(-\w\+\)\?[: ]\+\w\+/ contains=chordproMetaKeyword,chordproMetadata contained transparent
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
117 syn match chordproCustomMatch /{x_\w\+\(-\w\+\)\?[: ]/ contains=chordproCustom contained transparent
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
118
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
119 syn match chordproConditional /-\w\+/ contained
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
120
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
121 syn match chordproMetaDataOperator /[=|]/ contained
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
122 syn match chordproMetaDataValue /%{\w*/ contains=chordproMetaData,chordproStandardMetadata contained transparent
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
123 " Handles nested metadata tags, but the end of the containing chordproTag is
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
124 " not highlighted correctly, if there are more than two levels of nesting
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
125 syn region chordproMetaDataTag start=/%{\w*/ skip=/%{[^}]*}/ end=/}/ contains=chordproMetaDataValue,chordproMetaDataOperator,chordproMetadataTag contained
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
126
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
127 syn region chordproArguments start=/{\w\+\(-\w\+\)\?[: ]/hs=e+1 skip=/%{[^}]*}/ end=/}/he=s-1 contains=chordproDirArgMatch,chordproArgumentsNumber,chordproMetaDataTag contained
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
128 syn region chordproArguments start=/{\(define\|chord\)\(-\w\+\)\?[: ]/hs=e+1 end=/}/he=s-1 contains=chordproDirArgMatch,chordproDefineKeyword,chordproArgumentsNumber contained
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
129 syn region chordproArguments start=/{meta\(-\w\+\)\?[: ]/hs=e+1 skip=/%{[^}]*}/ end=/}/he=s-1 contains=chordproMetaMatch,chordproMetaDataTag contained
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
130 syn region chordproArguments start=/{x_\w\+\(-\w\+\)\?[: ]/hs=e+1 end=/}/he=s-1 contains=chordproCustomMatch contained
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
131
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
132 syn region chordproTag start=/{/ skip=/%{[^}]*}/ end=/}/ contains=chordproDirMatch,chordproArguments oneline
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
133
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
134 syn region chordproChord matchgroup=chordproBracket start=/\[/ end=/]/ oneline
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
135
28620
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
136 syn region chordproAnnotation matchgroup=chordproBracket start=/\[\*/ end=/]/ oneline
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
137
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
138 syn region chordproTab start=/{start_of_tab\(-\w\+\)\?\([: ].\+\)\?}\|{sot\(-\w\+\)\?\([: ].\+\)\?}/hs=e+1 end=/{end_of_tab}\|{eot}/me=s-1 contains=chordproTag,chordproComment keepend
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
139
28620
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
140 syn region chordproChorus start=/{start_of_chorus\(-\w\+\)\?\([: ].\+\)\?}\|{soc\(-\w\+\)\?\([: ].\+\)\?}/hs=e+1 end=/{end_of_chorus}\|{eoc}/me=s-1 contains=chordproTag,chordproChord,chordproAnnotation,chordproComment keepend
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
141
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
142 syn region chordproBridge start=/{start_of_bridge\(-\w\+\)\?\([: ].\+\)\?}\|{sob\(-\w\+\)\?\([: ].\+\)\?}/hs=e+1 end=/{end_of_bridge}\|{eob}/me=s-1 contains=chordproTag,chordproChord,chordproAnnotation,chordproComment keepend
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
143
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
144 syn region chordproAbc start=/{start_of_abc\(-\w\+\)\?\([: ].\+\)\?}/hs=e+1 end=/{end_of_abc}/me=s-1 contains=chordproTag,@Abc keepend
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
145
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
146 syn match chordproComment /^#.*/
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
147
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
148 " Define the default highlighting.
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
149 hi def link chordproDirective Statement
28620
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
150 hi def link chordproDirWithArg Statement
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
151 hi def link chordproConditional Statement
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
152 hi def link chordproCustom Statement
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
153 hi def link chordproMetaKeyword Statement
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
154 hi def link chordproMetaDataOperator Operator
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
155 hi def link chordproMetaDataTag Function
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
156 hi def link chordproArguments Special
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
157 hi def link chordproArgumentsNumber Number
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
158 hi def link chordproChord Type
28620
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
159 hi def link chordproAnnotation Identifier
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
160 hi def link chordproTag Constant
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
161 hi def link chordproTab PreProc
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
162 hi def link chordproComment Comment
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
163 hi def link chordproBracket Constant
28620
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
164 hi def link chordproDefineKeyword Identifier
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
165 hi def link chordproMetadata Identifier
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
166 hi def link chordproStandardMetadata Identifier
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
167 hi def chordproChorus term=bold cterm=bold gui=bold
28620
4d76b3e07c07 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 856
diff changeset
168 hi def chordproBridge term=italic cterm=italic gui=italic
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
169
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
170 let b:current_syntax = "chordpro"
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
171
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
172 let &cpo = s:cpo_save
1f3b1021f002 updated for version 7.0e05
vimboss
parents:
diff changeset
173 unlet s:cpo_save