notmuch/vim/syntax/notmuch-search.vim
Felipe Contreras 138c6aa098 Add new notmuch vim plugin
The old one was not properly maintained and is now deprecated. The new
one has much better support.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2013-06-02 19:42:43 -05:00

12 lines
601 B
VimL

syntax region nmSearch start=/^/ end=/$/ oneline contains=nmSearchDate
syntax match nmSearchDate /^.\{-13}/ contained nextgroup=nmSearchNum
syntax match nmSearchNum /.\{-4}/ contained nextgroup=nmSearchFrom
syntax match nmSearchFrom /.\{-21}/ contained nextgroup=nmSearchSubject
syntax match nmSearchSubject /.\{0,}\(([^()]\+)$\)\@=/ contained nextgroup=nmSearchTags
syntax match nmSearchTags /.\+$/ contained
highlight link nmSearchDate Statement
highlight link nmSearchNum Type
highlight link nmSearchFrom Include
highlight link nmSearchSubject Normal
highlight link nmSearchTags String