Add mail syntax highlighting

This commit is contained in:
Alexey Gladkov
2016-12-27 15:13:33 +01:00
committed by Alexey Gladkov
parent 143339dd67
commit 80c6c8ef9f

13
runtime/syntax/mail.micro Normal file
View 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 "^>.*$"