feat: add xml, dtd and org file types

This commit is contained in:
CJ van den Berg 2024-02-21 15:08:36 +01:00
parent 7c9faa07c1
commit d5beecd018
3 changed files with 26 additions and 2 deletions

View file

@ -60,6 +60,13 @@ pub const dockerfile = .{
.comment = "#",
};
pub const dtd = .{
.icon = "󰗀",
.extensions = &[_][]const u8{ "dtd" },
.comment = "<!--",
.highlights = @embedFile("tree-sitter-xml/dtd/queries/highlights.scm"),
};
pub const fish = .{
.extensions = &[_][]const u8{"fish"},
.comment = "#",
@ -189,6 +196,12 @@ pub const openscad = .{
.injections = @embedFile("tree-sitter-openscad/queries/injections.scm"),
};
pub const org = .{
.icon = "",
.extensions = &[_][]const u8{"org"},
.comment = "#",
};
pub const php = .{
.color = 0x6181b6,
.icon = "󰌟",
@ -253,6 +266,14 @@ pub const typescript = .{
.comment = "//",
};
pub const xml = .{
.icon = "󰗀",
.extensions = &[_][]const u8{ "xml" },
.comment = "<!--",
.highlights = @embedFile("tree-sitter-xml/xml/queries/highlights.scm"),
.first_line_matches = .{ .prefix = "<?xml " },
};
pub const zig = .{
.color = 0xf7a41d,
.icon = "",