mirror of
https://github.com/Hopiu/micro.git
synced 2026-05-22 13:21:53 +00:00
Add mail syntax highlighting
This commit is contained in:
parent
143339dd67
commit
80c6c8ef9f
1 changed files with 13 additions and 0 deletions
13
runtime/syntax/mail.micro
Normal file
13
runtime/syntax/mail.micro
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
syntax "mail" "(.*/mutt-.*|\.eml)$"
|
||||||
|
header "^From .* \d+:\d+:\d+ \d+"
|
||||||
|
|
||||||
|
color yellow "^From .*"
|
||||||
|
color identifier "^[^[:space:]]+:"
|
||||||
|
color preproc "^List-(Id|Archive|Subscribe|Unsubscribe|Post|Help):"
|
||||||
|
color constant "^(To|From):"
|
||||||
|
color constant.string "^Subject:.*"
|
||||||
|
color statement "<?[^@[:space:]]+@[^[:space:]]+>?"
|
||||||
|
|
||||||
|
color default start="^\n\n" end=".*"
|
||||||
|
|
||||||
|
color comment "^>.*$"
|
||||||
Loading…
Reference in a new issue