vim: highlight []-blocks in search view
authorBart Trojanowski <bart@jukie.net>
Sun, 22 Nov 2009 04:59:01 +0000 (23:59 -0500)
committerBart Trojanowski <bart@jukie.net>
Wed, 25 Nov 2009 05:48:54 +0000 (00:48 -0500)
vim/syntax/notmuch-search.vim

index 832b2b8466360518e3f1c69045d4b5277eeb583a..3c2b2729b4023f1b580e3346812917a6d1bac1b4 100644 (file)
@@ -9,6 +9,7 @@ syntax region nmSearchFrom      start='\]\@<=' end='|'     oneline contained
 syntax match  nmSearchCountZero '0/\(\d\+\)'               contained
 syntax match  nmSearchCountSome '\([1-9]\d*\)/\(\d\+\)'    contained
 syntax match  nmSearchCountAll  '\(\d\+\)/\1'              contained
+syntax match  nmSearchSquareBracketText '\(\[\w\+\]\)'
 syntax match  nmSearchTags      /([^)]\+)$/
 
 highlight link nmSearchDate      Statement
@@ -17,6 +18,7 @@ highlight link nmSearchCountZero Function
 highlight link nmSearchCountSome Special
 highlight link nmSearchCountAll  Type
 highlight link nmSearchFrom      Include
+highlight link nmSearchSquareBracketText Special
 highlight link nmSearchTags      String
 
 highlight CursorLine term=reverse cterm=reverse gui=reverse