mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-29 22:27:13 +09:00
Add mail syntax highlighting
This commit is contained in:
committed by
Alexey Gladkov
parent
143339dd67
commit
80c6c8ef9f
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