diff --git a/.config/helix/languages.toml b/.config/helix/languages.toml index 626d2895..db37b6cb 100644 --- a/.config/helix/languages.toml +++ b/.config/helix/languages.toml @@ -84,8 +84,9 @@ onSave = true name = "mail" scope = "text.mail" file-types = ["eml"] -injection-regex = "mail|eml|email" +# injection-regex = "mail|eml|email" [[grammar]] name = "mail" -source.path = "/home/fic/dev/tree-sitter-mail" +# source.path = "/home/fic/dev/tree-sitter-mail" +source = { git = "https://github.com/stevenxxiu/tree-sitter-mail", rev = "e3d63ac2093e22777cb30d70b9264f48814622ad" } diff --git a/.config/helix/runtime/grammars/mail.so b/.config/helix/runtime/grammars/mail.so index c23295f5..aadc4025 100755 Binary files a/.config/helix/runtime/grammars/mail.so and b/.config/helix/runtime/grammars/mail.so differ diff --git a/.config/helix/runtime/queries/mail/highlights.scm b/.config/helix/runtime/queries/mail/highlights.scm index 0c90d5c2..612d068c 100644 --- a/.config/helix/runtime/queries/mail/highlights.scm +++ b/.config/helix/runtime/queries/mail/highlights.scm @@ -1 +1,4 @@ -(header_separator) @punctuation.delimiter +(header_email) @type.builtin +(email) @string +(header_subject) @markup.heading +(header_other) @markup.environment