From: Bart Trojanowski Date: Wed, 25 Nov 2009 05:13:32 +0000 (-0500) Subject: vim: minor improvements to search screen syntax matching X-Git-Tag: 0.1~313^2~44 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a01e1335bea5fc583e1ab5e1a2ea8ad81ba725ce;p=notmuch.git vim: minor improvements to search screen syntax matching --- diff --git a/vim/syntax/notmuch-search.vim b/vim/syntax/notmuch-search.vim index 3c2b2729..71839fd9 100644 --- a/vim/syntax/notmuch-search.vim +++ b/vim/syntax/notmuch-search.vim @@ -2,9 +2,9 @@ " TODO: I cannot figure out why nmSearchTags is not matching anything :( -syntax region nmSearchDate start='^' end='\%13v' +syntax region nmSearchDate start='^' end='\%13v' oneline syntax region nmSearchCountAndFrom start='\%14v\[' end='|' oneline contains=nmSearchCount,nmSearchFrom -syntax region nmSearchCount start='\%14v\[' end='\]' contained contains=nmSearchCountZero,nmSearchCountSome,nmSearchCountAll +syntax region nmSearchCount start='\[' end='\]' oneline contained contains=nmSearchCountZero,nmSearchCountSome,nmSearchCountAll syntax region nmSearchFrom start='\]\@<=' end='|' oneline contained syntax match nmSearchCountZero '0/\(\d\+\)' contained syntax match nmSearchCountSome '\([1-9]\d*\)/\(\d\+\)' contained