]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/mail.yaml
Merge branch 'python-highlight-zero' of https://github.com/a11ce/micro into a11ce...
[micro.git] / runtime / syntax / mail.yaml
1 filetype: mail
2
3 detect:
4     filename: "(.*/mutt-.*|\\.eml)$"
5     header: "^From .* \\d+:\\d+:\\d+ \\d+"
6
7 rules:
8     - type: "^From .*"
9     - identifier: "^[^[:space:]]+:"
10     - preproc: "^List-(Id|Archive|Subscribe|Unsubscribe|Post|Help):"
11     - constant: "^(To|From):"
12     - constant.string:
13         start: "^Subject:.*"
14         end: "$"
15         rules: 
16             - constant.specialChar: "\\\\."
17     - statement: "<?[^@[:space:]]+@[^[:space:]]+>?"
18     - default:
19         start: "^\\n\\n"
20         end: ".*"
21         rules: []
22     - comment:
23         start: "^>.*"
24         end: "$"
25         rules: []