1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 05:40:05 +08:00
SpaceVim/bundle/gina.vim/syntax/gina-_events.vim

24 lines
612 B
VimL
Raw Normal View History

if exists('b:current_syntax')
finish
endif
syntax match GinaEventsPrefix /^[^:]\+/
syntax match GinaEventsTime /\d\{2}:\d\{2}:\d\{2}\.\d\{6}/
syntax match GinaEventsComment /^| .*$/
syntax match GinaEventsComment /<.\{-}>$/
function! s:define_highlights() abort
highlight default link GinaEventsComment Comment
highlight default link GinaEventsPrefix Statement
highlight default link GinaEventsTime Title
endfunction
augroup gina_syntax__events_internal
autocmd! *
autocmd ColorScheme * call s:define_highlights()
augroup END
call s:define_highlights()
let b:current_syntax = 'gina-_events'