summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2023-12-12 21:20:32 +1100
committerMaxime Coste <mawww@kakoune.org>2023-12-12 21:20:32 +1100
commitfda67a7b08481e7e47da4bc4647f1badf312f769 (patch)
tree797c26f0710a54031e73e9916ad18b20c05aeca7
parent5ed2433b9f06e80cc76cb97b43302efa65b74df3 (diff)
parent8a14fbc15b626d6c1a51f1e7a36d391a6b9b5a36 (diff)
Merge remote-tracking branch 'arachsys/mail-highlight'
-rw-r--r--rc/filetype/mail.kak2
1 files changed, 2 insertions, 0 deletions
diff --git a/rc/filetype/mail.kak b/rc/filetype/mail.kak
index 4cbae02a..a7faf903 100644
--- a/rc/filetype/mail.kak
+++ b/rc/filetype/mail.kak
@@ -21,8 +21,10 @@ provide-module mail %{
require-module diff
add-highlighter shared/mail group
+add-highlighter shared/mail/ ref diff
add-highlighter shared/mail/ regex ^(From|To|Cc|Bcc|Subject|Reply-To|In-Reply-To|References|Date|Message-Id|User-Agent):([^\n]*(?:\n\h+[^\n]+)*)$ 1:keyword 2:attribute
add-highlighter shared/mail/ regex <[^@>]+@.*?> 0:string
add-highlighter shared/mail/ regex ^>.*?$ 0:comment
+add-highlighter shared/mail/ regex ^--\ \n.* 0:comment
}