]> git.lizzy.rs Git - micro.git/blobdiff - runtime/syntax/mail.yaml
Merge branch 'python-highlight-zero' of https://github.com/a11ce/micro into a11ce...
[micro.git] / runtime / syntax / mail.yaml
index 0dc1473b3402eb74e61a7f00376bf364cd36322c..57aa03441549181049721f1d685f4f14b02efb17 100644 (file)
@@ -1,19 +1,25 @@
 filetype: mail
 
-detect: 
+detect:
     filename: "(.*/mutt-.*|\\.eml)$"
     header: "^From .* \\d+:\\d+:\\d+ \\d+"
 
 rules:
-    - constant: "^From .*"
+    - type: "^From .*"
     - identifier: "^[^[:space:]]+:"
     - preproc: "^List-(Id|Archive|Subscribe|Unsubscribe|Post|Help):"
     - constant: "^(To|From):"
-    - constant.string: "^Subject:.*"
+    - constant.string:
+        start: "^Subject:.*"
+        end: "$"
+        rules: 
+            - constant.specialChar: "\\\\."
     - statement: "<?[^@[:space:]]+@[^[:space:]]+>?"
     - default:
         start: "^\\n\\n"
         end: ".*"
         rules: []
-
-    - comment: "^>.*$"
+    - comment:
+        start: "^>.*"
+        end: "$"
+        rules: []