Merge pull request #510 from legionus/email-syntax

Add mail syntax highlighting
This commit is contained in:
Zachary Yedidia
2016-12-28 17:30:47 -05:00
committed by GitHub

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 "^>.*$"