aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Bart Trojanowski <bart@jukie.net>2009-11-21 23:59:01 -0500
committerGravatar Bart Trojanowski <bart@jukie.net>2009-11-25 00:48:54 -0500
commite67ad108c80424a1138e9d2eea37844977fc1eff (patch)
treec399bc2d65d32e136a595e94f795f6bf6589e0ea
parenta2f6319c9ac8f7f3f991dc56713f0f7902796820 (diff)
vim: highlight []-blocks in search view
-rw-r--r--vim/syntax/notmuch-search.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/vim/syntax/notmuch-search.vim b/vim/syntax/notmuch-search.vim
index 832b2b84..3c2b2729 100644
--- a/vim/syntax/notmuch-search.vim
+++ b/vim/syntax/notmuch-search.vim
@@ -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