1 " notmuch search mode syntax file
3 " TODO: I cannot figure out why nmSearchTags is not matching anything :(
5 syntax region nmSearchDate start="^" end="\%13v"
6 syntax region nmSearchCountAndFrom start="\%14v\[" end=";" oneline contains=nmSearchCount,nmSearchFrom
7 syntax match nmSearchFrom ' .*;' contained
8 syntax region nmSearchCount start="\%14v\[" end="\]" contained contains=nmSearchCountZero,nmSearchCountSome,nmSearchCountAll
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 /([^)]\+)$/
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
22 highlight CursorLine term=reverse cterm=reverse gui=reverse