Commit: runtime(chordpro): update syntax script

9 views
Skip to first unread message

Christian Brabandt

unread,
Dec 31, 2024, 5:30:13 AM12/31/24
to vim...@googlegroups.com
runtime(chordpro): update syntax script

Commit: https://github.com/vim/vim/commit/8dc98bf427d62501d9ecbb48d20ae2633c3db187
Author: nibo <ni...@relim.de>
Date: Tue Dec 31 11:24:46 2024 +0100

runtime(chordpro): update syntax script

References:
https://chordpro.org/beta/directives-define/#defining-chords-for-keyboard-instruments

Signed-off-by: nibo <ni...@relim.de>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/syntax/chordpro.vim b/runtime/syntax/chordpro.vim
index 41a0a1e9d..02c34b846 100644
--- a/runtime/syntax/chordpro.vim
+++ b/runtime/syntax/chordpro.vim
@@ -2,6 +2,7 @@
" Language: ChordPro 6 (https://www.chordpro.org)
" Maintainer: Niels Bo Andersen <ni...@niboan.dk>
" Last Change: 2022-04-15
+" 2024 Dec 31: add "keys" as syntax keyword (via: https://groups.google.com/g/vim_dev/c/vP4epus0euM/m/mNoDY6hsCQAJ)

" Quit when a syntax file was already loaded
if exists("b:current_syntax")
@@ -104,7 +105,7 @@ syn match chordproStandardMetadata /instrument\.description/ contained
syn match chordproStandardMetadata /user\.name/ contained
syn match chordproStandardMetadata /user\.fullname/ contained

-syn keyword chordproDefineKeyword contained frets fingers
+syn keyword chordproDefineKeyword contained frets fingers keys
syn match chordproDefineKeyword /base-fret/ contained

syn match chordproArgumentsNumber /\d\+/ contained
Reply all
Reply to author
Forward
0 new messages