mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-28 21:54:10 +01:00
added syntax files for search and show screens
This commit is contained in:
parent
5e7df3c17e
commit
3493ea0ed5
2 changed files with 35 additions and 0 deletions
22
vim/syntax/notmuch-search.vim
Normal file
22
vim/syntax/notmuch-search.vim
Normal file
|
@ -0,0 +1,22 @@
|
|||
" notmuch search mode syntax file
|
||||
|
||||
" TODO: I cannot figure out why nmSearchTags is not matching anything :(
|
||||
|
||||
syntax region nmSearchDate start="^" end="\%13v"
|
||||
syntax region nmSearchCountAndFrom start="\%14v\[" end=";" oneline contains=nmSearchCount,nmSearchFrom
|
||||
syntax match nmSearchFrom ' .*;' contained
|
||||
syntax region nmSearchCount start="\%14v\[" end="\]" contained contains=nmSearchCountZero,nmSearchCountSome,nmSearchCountAll
|
||||
syntax match nmSearchCountZero '0/\(\d\+\)' contained
|
||||
syntax match nmSearchCountSome '\([1-9]\d*\)/\(\d\+\)' contained
|
||||
syntax match nmSearchCountAll '\(\d\+\)/\1' contained
|
||||
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 nmSearchTags String
|
||||
|
||||
highlight CursorLine term=reverse cterm=reverse gui=reverse
|
13
vim/syntax/notmuch-show.vim
Normal file
13
vim/syntax/notmuch-show.vim
Normal file
|
@ -0,0 +1,13 @@
|
|||
" notmuch show mode syntax file
|
||||
|
||||
syntax region nmShowMessage start="message{" end="message}" contains=nmShowHeader,nmShowBody,nmShowAttachment,nmShowPart
|
||||
syntax region nmShowHeader start="header{" end="header}" contained
|
||||
syntax region nmShowBody start="body{" end="body}" contained contains=nmShowAttachment,nmShowPart
|
||||
syntax region nmShowAttachment start="attachment{" end="attachment}" contained
|
||||
syntax region nmShowPart start="part{" end="part}" contained
|
||||
|
||||
highlight link nmShowMessage Error
|
||||
highlight link nmShowHeader Type
|
||||
highlight link nmShowBody Statement
|
||||
highlight link nmShowAttachment Statement
|
||||
highlight link nmShowPart String
|
Loading…
Reference in a new issue