add notmuch-folders support mode
[notmuch] / vim / syntax / notmuch-search.vim
1 " notmuch search mode syntax file
2
3 " TODO: I cannot figure out why nmSearchTags is not matching anything :(
4
5 syntax region nmSearchDate      start='^' end='\%13v'
6 syntax region nmSearchCountAndFrom start='\%14v\[' end='|' oneline contains=nmSearchCount,nmSearchFrom
7 syntax region nmSearchCount     start='\%14v\[' end='\]'   contained contains=nmSearchCountZero,nmSearchCountSome,nmSearchCountAll
8 syntax region nmSearchFrom      start='\]\@<=' end='|'     oneline contained
9 syntax match  nmSearchCountZero '0/\(\d\+\)'               contained
10 syntax match  nmSearchCountSome '\([1-9]\d*\)/\(\d\+\)'    contained
11 syntax match  nmSearchCountAll  '\(\d\+\)/\1'              contained
12 syntax match  nmSearchTags      /([^)]\+)$/
13
14 highlight link nmSearchDate      Statement
15 "highlight link nmSearchCount     Comment
16 highlight link nmSearchCountZero Function
17 highlight link nmSearchCountSome Special
18 highlight link nmSearchCountAll  Type
19 highlight link nmSearchFrom      Include
20 highlight link nmSearchTags      String
21
22 highlight CursorLine term=reverse cterm=reverse gui=reverse