notmuch/vim/syntax/notmuch-search.vim

25 lines
1.2 KiB
VimL
Raw Normal View History

" notmuch search mode syntax file
" TODO: I cannot figure out why nmSearchTags is not matching anything :(
syntax region nmSearchDate start='^' end='\%13v' oneline
2009-11-20 19:50:29 +01:00
syntax region nmSearchCountAndFrom start='\%14v\[' end='|' oneline contains=nmSearchCount,nmSearchFrom
syntax region nmSearchCount start='\[' end='\]' oneline contained contains=nmSearchCountZero,nmSearchCountSome,nmSearchCountAll
2009-11-20 19:50:29 +01:00
syntax region nmSearchFrom start='\]\@<=' end='|' oneline contained
syntax match nmSearchCountZero '0/\(\d\+\)' contained
syntax match nmSearchCountSome '\([1-9]\d*\)/\(\d\+\)' contained
syntax match nmSearchCountAll '\(\d\+\)/\1' contained
syntax match nmSearchSquareBracketText '\(\[\w\+\]\)'
syntax match nmSearchTags /([^)]\+)$/
highlight link nmSearchDate Statement
"highlight link nmSearchCount Comment
highlight link nmSearchCountZero Function
highlight link nmSearchCountSome Special
highlight link nmSearchCountAll Type
highlight link nmSearchFrom Include
highlight link nmSearchSquareBracketText Special
highlight link nmSearchTags String
highlight CursorLine term=reverse cterm=reverse gui=reverse