mirror of
https://github.com/soywod/himalaya.git
synced 2024-09-06 02:41:12 +00:00
25 lines
1.1 KiB
VimL
25 lines
1.1 KiB
VimL
if exists("b:current_syntax")
|
|
finish
|
|
endif
|
|
|
|
syntax match hya_sep /|/
|
|
syntax match hya_uid /^|.\{-}|/ contains=hya_sep
|
|
syntax match hya_flags /^|.\{-}|.\{-}|/ contains=hya_uid,hya_sep
|
|
syntax match hya_subject /^|.\{-}|.\{-}|.\{-}|/ contains=hya_uid,hya_flags,hya_sep
|
|
syntax match hya_sender /^|.\{-}|.\{-}|.\{-}|.\{-}|/ contains=hya_uid,hya_flags,hya_subject,hya_sep
|
|
syntax match hya_date /^|.\{-}|.\{-}|.\{-}|.\{-}|.\{-}|/ contains=hya_uid,hya_flags,hya_subject,hya_sender,hya_sep
|
|
syntax match hya_head /.*\%1l/ contains=hya_sep
|
|
syntax match hya_unseen /^|.\{-}|🟓.*$/ contains=hya_sep
|
|
|
|
highlight default link hya_sep VertSplit
|
|
highlight default link hya_uid Identifier
|
|
highlight default link hya_flags Special
|
|
highlight default link hya_subject String
|
|
highlight default link hya_sender Structure
|
|
highlight default link hya_date Constant
|
|
|
|
highlight hya_head term=bold,underline cterm=bold,underline gui=bold,underline
|
|
highlight hya_unseen term=bold cterm=bold gui=bold
|
|
|
|
let b:current_syntax = "himalaya-msg-list"
|