notmuch/contrib/notmuch-vim/syntax/notmuch-search.vim
David Bremner 6ee07a9c6d notmuch-vim: deprecate, move to contrib
As discussed in id:871udhcmks.fsf@zancas.localnet, notmuch-vim doesn't
really meet the standards of the CLI, emacs interface, or python
bindings in terms of being well maintained.
2013-02-16 08:03:09 -04: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