diff options
author | Christian Clason <c.clason@uni-graz.at> | 2025-01-14 08:32:36 +0100 |
---|---|---|
committer | Christian Clason <ch.clason+github@icloud.com> | 2025-01-14 13:23:02 +0100 |
commit | e8ddb7a46938f8843abc1c321cfd83cee2ba0020 (patch) | |
tree | 3d21acf80b0f9d58ffb5fddd5eada3afcb29d5ed | |
parent | 69ad6b12ec473a54f09a11596da724178185eb7a (diff) | |
download | rneovim-e8ddb7a46938f8843abc1c321cfd83cee2ba0020.tar.gz rneovim-e8ddb7a46938f8843abc1c321cfd83cee2ba0020.tar.bz2 rneovim-e8ddb7a46938f8843abc1c321cfd83cee2ba0020.zip |
vim-patch:30377e0: 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: vim/vim#16436
https://github.com/vim/vim/commit/30377e0fe084496911e108cbb33c84cf075e6e33
Co-authored-by: Denilson Sá Maia <denilsonsa@gmail.com>
-rw-r--r-- | runtime/syntax/lyrics.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/syntax/lyrics.vim b/runtime/syntax/lyrics.vim index fd127988f2..48a5b1171c 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: 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 |