runtime(lyrics): support milliseconds in syntax script Commit: https://github.com/vim/vim/commit/30377e0fe084496911e108cbb33c84cf075e6e33 Author: Denilson Sá Maia <denilso...@gmail.com> Date: Mon Jan 13 08:23:24 2025 +0100
runtime(lyrics): support milliseconds in syntax script The following tool creates LRC files using three fractional digits after the seconds (i.e. milliseconds). References: https://github.com/magic-akari/lrc-maker https://lrc-maker.github.io/ closes: #16436 Signed-off-by: Denilson Sá Maia <denilso...@gmail.com> Signed-off-by: ObserverOfTime <chronobser...@disroot.org> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/runtime/syntax/lyrics.vim b/runtime/syntax/lyrics.vim index fd127988f..48a5b1171 100644 --- a/runtime/syntax/lyrics.vim +++ b/runtime/syntax/lyrics.vim @@ -2,7 +2,7 @@ " Language: LyRiCs " Maintainer: ObserverOfTime <chronobser...@disroot.org> " Filenames: *.lrc -" Last Change: 2024 Sep 20 +" Last Change: 2025 Jan 13 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\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 -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1tXEtf-008ogk-N9%40256bit.org.