mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-05 14:40:20 +09:00
Merge pull request #510 from legionus/email-syntax
Add mail syntax highlighting
This commit is contained in:
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 "^>.*$"
|
||||
Reference in New Issue
Block a user