aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-09-21 10:26:34 +0200
committerChristian Clason <c.clason@uni-graz.at>2024-09-21 11:25:41 +0200
commitcd230be9189b8c8645610d86752711b38a52c711 (patch)
tree6397b2ee8398250322e52601eb680169b600c3a0
parent91b7a421eacefa795d7a60b9d1332d02a3a87504 (diff)
downloadrneovim-cd230be9189b8c8645610d86752711b38a52c711.tar.gz
rneovim-cd230be9189b8c8645610d86752711b38a52c711.tar.bz2
rneovim-cd230be9189b8c8645610d86752711b38a52c711.zip
vim-patch:597aadc: runtime(lyrics): support multiple timestamps in syntax script
Problem: Multiple timestamps in the same line were not highlighted Solution: Adapt the syntax to support multiple timestamps fixes: vim/vim#15703 closes: vim/vim#15707 https://github.com/vim/vim/commit/597aadcf214cd13bf6a2155bf45173edc03199de Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
-rw-r--r--runtime/syntax/lyrics.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/syntax/lyrics.vim b/runtime/syntax/lyrics.vim
index 42a288b51b..fd127988f2 100644
--- a/runtime/syntax/lyrics.vim
+++ b/runtime/syntax/lyrics.vim
@@ -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