forked from aniani/vim
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 <denilsonsa@gmail.com> Signed-off-by: ObserverOfTime <chronobserver@disroot.org> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
221c53202d
commit
30377e0fe0
@ -2,7 +2,7 @@
|
|||||||
" Language: LyRiCs
|
" Language: LyRiCs
|
||||||
" Maintainer: ObserverOfTime <chronobserver@disroot.org>
|
" Maintainer: ObserverOfTime <chronobserver@disroot.org>
|
||||||
" Filenames: *.lrc
|
" Filenames: *.lrc
|
||||||
" Last Change: 2024 Sep 20
|
" Last Change: 2025 Jan 13
|
||||||
|
|
||||||
if exists('b:current_syntax')
|
if exists('b:current_syntax')
|
||||||
finish
|
finish
|
||||||
@ -23,7 +23,7 @@ syn match lrcTagName contained nextgroup=lrcTagValue
|
|||||||
syn match lrcTagValue /:\zs.\+\ze\]/ contained
|
syn match lrcTagValue /:\zs.\+\ze\]/ contained
|
||||||
|
|
||||||
" Lyrics
|
" 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
|
\ contains=lrcNumber nextgroup=lrcLyricLine
|
||||||
syn match lrcLyricLine /.*$/ contained contains=lrcWordTime,@Spell
|
syn match lrcLyricLine /.*$/ contained contains=lrcWordTime,@Spell
|
||||||
syn match lrcWordTime /<\d\d:\d\d\.\d\d>/ contained contains=lrcNumber,@NoSpell
|
syn match lrcWordTime /<\d\d:\d\d\.\d\d>/ contained contains=lrcNumber,@NoSpell
|
||||||
|
Loading…
x
Reference in New Issue
Block a user