1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 23:00:05 +08:00
SpaceVim/bundle/vim-chat/syntax/vimchat.vim
2021-10-27 00:50:09 +08:00

15 lines
638 B
VimL

" 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
" syn match vimChatMsg /^\[\d\d\(:\d\d\)\{0,2\}][^>]*/ contains=vimChatTime,vimChatNick
syn match VimChatTime /\[\d\d\:\d\d:\d\d]/
syn match VimChatNick /\[\d\d\:\d\d:\d\d]\s<[^>]*>/ contains=VimChatTime
" hi def link vimChatMsg Comment
hi def link VimChatTime String
hi def link VimChatNick Type