Mercurial > vim
changeset 36172:7b4f0a2a87bf
runtime(lyrics): support multiple timestamps in syntax script
Commit: https://github.com/vim/vim/commit/597aadcf214cd13bf6a2155bf45173edc03199de
Author: ObserverOfTime <chronobserver@disroot.org>
Date: Fri Sep 20 21:41:17 2024 +0200
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: #15703
closes: #15707
Signed-off-by: ObserverOfTime <chronobserver@disroot.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 20 Sep 2024 21:45:12 +0200 |
parents | 51c2dc1788c2 |
children | 50c02bbbfe42 |
files | runtime/syntax/lyrics.vim |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 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