feat: add xml, dtd and org file types
This commit is contained in:
parent
7c9faa07c1
commit
d5beecd018
3 changed files with 26 additions and 2 deletions
|
@ -39,6 +39,7 @@ pub fn build(b: *std.Build) void {
|
|||
file_module(b, tree_sitter_dep, "tree-sitter-nix/queries/highlights.scm"),
|
||||
file_module(b, tree_sitter_dep, "tree-sitter-ocaml/queries/highlights.scm"),
|
||||
file_module(b, tree_sitter_dep, "tree-sitter-openscad/queries/highlights.scm"),
|
||||
file_module(b, tree_sitter_dep, "tree-sitter-org/queries/highlights.scm"),
|
||||
file_module(b, tree_sitter_dep, "tree-sitter-php/queries/highlights.scm"),
|
||||
file_module(b, tree_sitter_dep, "tree-sitter-python/queries/highlights.scm"),
|
||||
file_module(b, tree_sitter_dep, "tree-sitter-purescript/queries/highlights.scm"),
|
||||
|
@ -50,6 +51,8 @@ pub fn build(b: *std.Build) void {
|
|||
file_module(b, tree_sitter_dep, "tree-sitter-scheme/queries/highlights.scm"),
|
||||
file_module(b, tree_sitter_dep, "tree-sitter-toml/queries/highlights.scm"),
|
||||
file_module(b, tree_sitter_dep, "tree-sitter-typescript/queries/highlights.scm"),
|
||||
file_module(b, tree_sitter_dep, "tree-sitter-xml/dtd/queries/highlights.scm"),
|
||||
file_module(b, tree_sitter_dep, "tree-sitter-xml/xml/queries/highlights.scm"),
|
||||
file_module(b, tree_sitter_dep, "tree-sitter-zig/queries/highlights.scm"),
|
||||
|
||||
file_module(b, tree_sitter_dep, "tree-sitter-cpp/queries/injections.scm"),
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
.version = "0.0.1",
|
||||
.dependencies = .{
|
||||
.@"tree-sitter" = .{
|
||||
.url = "https://github.com/neurocyte/tree-sitter/releases/download/master-1ab391b43aa06e8648108f4d194e769a55a187be/source.tar.gz",
|
||||
.hash = "12209d0d502f6ee33386c3369d87936b919d56f0302bc030e6deee5d806451a4ca34",
|
||||
.url = "https://github.com/neurocyte/tree-sitter/releases/download/master-e3b53d698b82a380581551bf1cd2b4e69f116597/source.tar.gz",
|
||||
.hash = "1220bb4acc4ac336f3e0b8700682dfe26beb7dd00cce2c2f61802a4a6144735b1bf5",
|
||||
},
|
||||
.clap = .{
|
||||
.url = "https://github.com/Hejsil/zig-clap/archive/9c23bcb5aebe0c2542b4de4472f60959974e2222.tar.gz",
|
||||
|
|
|
@ -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 = "",
|
||||
|
|
Loading…
Add table
Reference in a new issue