mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-22 12:51:23 +03:00
4f9bebddec
Also, colorize lines that are multiply quoted, and email addresses, and URLs.
18 lines
333 B
Plaintext
18 lines
333 B
Plaintext
## Syntax highlighting for emails.
|
|
|
|
syntax email "\.eml$"
|
|
|
|
# Quoted lines.
|
|
color green "^>.*"
|
|
color cyan "^> ?>.*"
|
|
color yellow "^> ?> ?>.*"
|
|
|
|
# Email addresses.
|
|
color brightmagenta "<[^@]+@[^@]+>"
|
|
|
|
# URLs.
|
|
color brightblue "(https?|ftp)://\S+\.\S+[^\s.)]"
|
|
|
|
# Signatures, even quoted ones.
|
|
color yellow start="^>* ?-- $" end="^>* ?$"
|