1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-04 06:50:04 +08:00
SpaceVim/bundle/vim-chat/syntax/vimchat.vim

15 lines
668 B
VimL
Raw Normal View History

" syn match vimChatMsg /^\[\d\d\(:\d\d\)\{0,2\}].\{-}:/ contains=vimChatTime,vimChatMe
" syn match vimChatTime /\[\d\d\(:\d\d\)\{0,2\}]/ contained nextgroup=vimChatMe
" syn match vimChatMe /Me:/ contained
"
" Comment, Type, String, Statement
" hi link vimChatMsg Comment
" hi link vimChatTime String
" hi link vimChatMe Type
2021-10-27 00:50:09 +08:00
" syn match vimChatMsg /^\[\d\d\(:\d\d\)\{0,2\}][^>]*/ contains=vimChatTime,vimChatNick
2022-04-30 02:03:01 +08:00
syn match VimChatTime /\[\d\d\d\d-\d\d-\d\d\s\d\d\:\d\d]/
syn match VimChatNick /\[\d\d\d\d-\d\d-\d\d\s\d\d\:\d\d]\s<[^>]*>/ contains=VimChatTime
2021-10-27 00:50:09 +08:00
" hi def link vimChatMsg Comment
hi def link VimChatTime String
hi def link VimChatNick Type