Skip to content

Commit 0b0cb14

Browse files
committed
feat: add mail file type support
closes neurocyte#9
1 parent eda5f22 commit 0b0cb14

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

build.zig

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ pub fn build(b: *std.Build) void {
4242
ts_queryfile(b, tree_sitter_dep, "tree-sitter-julia/queries/highlights.scm"),
4343
ts_queryfile(b, tree_sitter_dep, "tree-sitter-kdl/queries/highlights.scm"),
4444
ts_queryfile(b, tree_sitter_dep, "tree-sitter-lua/queries/highlights.scm"),
45+
ts_queryfile(b, tree_sitter_dep, "tree-sitter-mail/queries/mail/highlights.scm"),
4546
ts_queryfile(b, tree_sitter_dep, "tree-sitter-make/queries/highlights.scm"),
4647
ts_queryfile(b, tree_sitter_dep, "tree-sitter-markdown/tree-sitter-markdown/queries/highlights.scm"),
4748
ts_queryfile(b, tree_sitter_dep, "tree-sitter-markdown/tree-sitter-markdown-inline/queries/highlights.scm"),

build.zig.zon

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
.dependencies = .{
66
.@"tree-sitter" = .{
7-
.url = "https://github.com/neurocyte/tree-sitter/releases/download/master-c3b0bddfbd7a12b3fe82625633019bafc0bf7959/source.tar.gz",
8-
.hash = "1220ff3a4c4261bea6341e938626b1aa951c8e5274a59e389ef86a8e0b04744ca4f3",
7+
.url = "https://github.com/neurocyte/tree-sitter/releases/download/master-aea6072c6178d5cd0c97fff33e130f632f355bc2/source.tar.gz",
8+
.hash = "12204c99c6093230023380068f386f7eb32ab83df9a8eb8b586ffe5aa44afa34ff0e",
99
},
1010
},
1111
.paths = .{

src/file_types.zig

+9
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,15 @@ pub const lua = .{
248248
.language_server = .{"lua-lsp"},
249249
};
250250

251+
pub const mail = .{
252+
.description = "E-Mail",
253+
.icon = "󰇮",
254+
.extensions = .{ "eml", "mbox" },
255+
.comment = ">",
256+
.highlights = "tree-sitter-mail/queries/mail/highlights.scm",
257+
.first_line_matches = .{ .prefix = "From" },
258+
};
259+
251260
pub const make = .{
252261
.description = "Make",
253262
.extensions = .{ "makefile", "Makefile", "MAKEFILE", "GNUmakefile", "mk", "mak", "dsp" },

0 commit comments

Comments
 (0)