]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(lyrics): support multiple timestamps in syntax script
authorObserverOfTime <chronobserver@disroot.org>
Fri, 20 Sep 2024 19:41:17 +0000 (21:41 +0200)
committerChristian Brabandt <cb@256bit.org>
Fri, 20 Sep 2024 19:41:17 +0000 (21:41 +0200)
Problem:  Multiple timestamps in the same line were not highlighted
Solution: Adapt the syntax to support multiple timestamps

fixes: #15703
closes: #15707

Signed-off-by: ObserverOfTime <chronobserver@disroot.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/syntax/lyrics.vim

index 42a288b51b1bcacb236cade350d1fad5a103d8fb..fd127988f2dc67b6e48d0ccd6ea9cb42494cd149 100644 (file)
@@ -2,7 +2,7 @@
 " Language:     LyRiCs
 " Maintainer:   ObserverOfTime <chronobserver@disroot.org>
 " Filenames:    *.lrc
-" Last Change:  2022 Sep 18
+" Last Change:  2024 Sep 20
 
 if exists('b:current_syntax')
     finish
@@ -23,7 +23,7 @@ syn match lrcTagName contained nextgroup=lrcTagValue
 syn match lrcTagValue /:\zs.\+\ze\]/ contained
 
 " Lyrics
-syn match lrcLyricTime /^\s*\[\d\d:\d\d\.\d\d\]/
+syn match lrcLyricTime /^\s*\(\[\d\d:\d\d\.\d\d\]\)\+/
             \ contains=lrcNumber nextgroup=lrcLyricLine
 syn match lrcLyricLine /.*$/ contained contains=lrcWordTime,@Spell
 syn match lrcWordTime /<\d\d:\d\d\.\d\d>/ contained contains=lrcNumber,@NoSpell