unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob 71839fd9aef9a9b33a0fd6db9e1b4a40732e603b 1199 bytes (raw)
name: vim/syntax/notmuch-search.vim 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 
" notmuch search mode syntax file

" TODO: I cannot figure out why nmSearchTags is not matching anything :(

syntax region nmSearchDate      start='^' end='\%13v'      oneline
syntax region nmSearchCountAndFrom start='\%14v\[' end='|' oneline contains=nmSearchCount,nmSearchFrom
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
syntax match  nmSearchCountAll  '\(\d\+\)/\1'              contained
syntax match  nmSearchSquareBracketText '\(\[\w\+\]\)'
syntax match  nmSearchTags      /([^)]\+)$/

highlight link nmSearchDate      Statement
"highlight link nmSearchCount     Comment
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

debug log:

solving 71839fd ...
found 71839fd in https://yhetil.org/notmuch.git/

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).