vim: minor improvements to search screen syntax matching
authorBart Trojanowski <bart@jukie.net>
Wed, 25 Nov 2009 05:13:32 +0000 (00:13 -0500)
committerBart Trojanowski <bart@jukie.net>
Wed, 25 Nov 2009 05:48:55 +0000 (00:48 -0500)
vim/syntax/notmuch-search.vim

index 3c2b2729b4023f1b580e3346812917a6d1bac1b4..71839fd9aef9a9b33a0fd6db9e1b4a40732e603b 100644 (file)
@@ -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