vim: add a helpful header to notmuch-compose 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'      oneline
6 syntax region nmSearchCountAndFrom start='\%14v\[' end='|' oneline contains=nmSearchCount,nmSearchFrom
7 syntax region nmSearchCount     start='\[' end='\]'        oneline 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  nmSearchSquareBracketText '\(\[\w\+\]\)'
13 syntax match  nmSearchTags      /([^)]\+)$/
14
15 highlight link nmSearchDate      Statement
16 "highlight link nmSearchCount     Comment
17 highlight link nmSearchCountZero Function
18 highlight link nmSearchCountSome Special
19 highlight link nmSearchCountAll  Type
20 highlight link nmSearchFrom      Include
21 highlight link nmSearchSquareBracketText Special
22 highlight link nmSearchTags      String
23
24 highlight CursorLine term=reverse cterm=reverse gui=reverse