Compare commits
2 commits
d6e867378b
...
740fe75707
| Author | SHA1 | Date | |
|---|---|---|---|
| 740fe75707 | |||
| 837844220c |
4 changed files with 22 additions and 7 deletions
|
|
@ -74,6 +74,7 @@ pub fn build(b: *std.Build) void {
|
||||||
ts_queryfile(b, tree_sitter_dep, ts_bin_query_gen, "tree-sitter-ninja/queries/highlights.scm");
|
ts_queryfile(b, tree_sitter_dep, ts_bin_query_gen, "tree-sitter-ninja/queries/highlights.scm");
|
||||||
ts_queryfile(b, tree_sitter_dep, ts_bin_query_gen, "tree-sitter-nix/queries/highlights.scm");
|
ts_queryfile(b, tree_sitter_dep, ts_bin_query_gen, "tree-sitter-nix/queries/highlights.scm");
|
||||||
ts_queryfile(b, tree_sitter_dep, ts_bin_query_gen, "tree-sitter-nu/queries/nu/highlights.scm");
|
ts_queryfile(b, tree_sitter_dep, ts_bin_query_gen, "tree-sitter-nu/queries/nu/highlights.scm");
|
||||||
|
ts_queryfile(b, tree_sitter_dep, ts_bin_query_gen, "tree-sitter-objc/queries/highlights.scm");
|
||||||
ts_queryfile(b, tree_sitter_dep, ts_bin_query_gen, "tree-sitter-ocaml/queries/highlights.scm");
|
ts_queryfile(b, tree_sitter_dep, ts_bin_query_gen, "tree-sitter-ocaml/queries/highlights.scm");
|
||||||
ts_queryfile(b, tree_sitter_dep, ts_bin_query_gen, "tree-sitter-odin/queries/highlights.scm");
|
ts_queryfile(b, tree_sitter_dep, ts_bin_query_gen, "tree-sitter-odin/queries/highlights.scm");
|
||||||
ts_queryfile(b, tree_sitter_dep, ts_bin_query_gen, "tree-sitter-openscad/queries/highlights.scm");
|
ts_queryfile(b, tree_sitter_dep, ts_bin_query_gen, "tree-sitter-openscad/queries/highlights.scm");
|
||||||
|
|
@ -131,6 +132,7 @@ pub fn build(b: *std.Build) void {
|
||||||
ts_queryfile(b, tree_sitter_dep, ts_bin_query_gen, "tree-sitter-nickel/queries/injections.scm");
|
ts_queryfile(b, tree_sitter_dep, ts_bin_query_gen, "tree-sitter-nickel/queries/injections.scm");
|
||||||
ts_queryfile(b, tree_sitter_dep, ts_bin_query_gen, "tree-sitter-nix/queries/injections.scm");
|
ts_queryfile(b, tree_sitter_dep, ts_bin_query_gen, "tree-sitter-nix/queries/injections.scm");
|
||||||
ts_queryfile(b, tree_sitter_dep, ts_bin_query_gen, "tree-sitter-nu/queries/nu/injections.scm");
|
ts_queryfile(b, tree_sitter_dep, ts_bin_query_gen, "tree-sitter-nu/queries/nu/injections.scm");
|
||||||
|
ts_queryfile(b, tree_sitter_dep, ts_bin_query_gen, "tree-sitter-objc/queries/injections.scm");
|
||||||
ts_queryfile(b, tree_sitter_dep, ts_bin_query_gen, "tree-sitter-odin/queries/injections.scm");
|
ts_queryfile(b, tree_sitter_dep, ts_bin_query_gen, "tree-sitter-odin/queries/injections.scm");
|
||||||
ts_queryfile(b, tree_sitter_dep, ts_bin_query_gen, "tree-sitter-openscad/queries/injections.scm");
|
ts_queryfile(b, tree_sitter_dep, ts_bin_query_gen, "tree-sitter-openscad/queries/injections.scm");
|
||||||
ts_queryfile(b, tree_sitter_dep, ts_bin_query_gen, "tree-sitter-perl/queries/injections.scm");
|
ts_queryfile(b, tree_sitter_dep, ts_bin_query_gen, "tree-sitter-perl/queries/injections.scm");
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@
|
||||||
|
|
||||||
.dependencies = .{
|
.dependencies = .{
|
||||||
.tree_sitter = .{
|
.tree_sitter = .{
|
||||||
.url = "https://github.com/neurocyte/tree-sitter/releases/download/master-6e2827ee231e220467bf04d2a2746faff5cb204a/source.tar.gz",
|
.url = "https://github.com/neurocyte/tree-sitter/releases/download/master-42b2cb66296e83fef13d155eca4a13057e31438b/source.tar.gz",
|
||||||
.hash = "tree_sitter-0.22.4-150-g7e3f5726-z0LhyGeG1y67PeOltaplVkxRNT2jMMexQhbUlrh0vdxM",
|
.hash = "tree_sitter-0.22.4-150-g7e3f5726-z0LhyNr8hjA9keSgGlG4PBO_9BGxsBtODt3e3qvXeTHu",
|
||||||
},
|
},
|
||||||
.cbor = .{
|
.cbor = .{
|
||||||
.url = "git+https://github.com/neurocyte/cbor?ref=master#7d2eeb68c8a2fb3f4d6baad6cc04c521b92974c0",
|
.url = "git+https://github.com/neurocyte/cbor?ref=master#7d2eeb68c8a2fb3f4d6baad6cc04c521b92974c0",
|
||||||
|
|
|
||||||
|
|
@ -190,6 +190,6 @@ fn deserialize_query(query_bin: []const u8, language: ?*const treez.Language, al
|
||||||
var ts_query_out, const arena = try tss.fromCbor(query_bin, allocator);
|
var ts_query_out, const arena = try tss.fromCbor(query_bin, allocator);
|
||||||
ts_query_out.language = @intFromPtr(language);
|
ts_query_out.language = @intFromPtr(language);
|
||||||
|
|
||||||
const query_out: *Query = @alignCast(@ptrCast(ts_query_out));
|
const query_out: *Query = @ptrCast(@alignCast(ts_query_out));
|
||||||
return .{ query_out, arena };
|
return .{ query_out, arena };
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ pub const astro = .{
|
||||||
pub const awk = .{
|
pub const awk = .{
|
||||||
.description = "Awk",
|
.description = "Awk",
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{"awk", "gawk"},
|
.extensions = .{ "awk", "gawk" },
|
||||||
.comment = "#",
|
.comment = "#",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -131,7 +131,7 @@ pub const elm = .{
|
||||||
.description = "Elm",
|
.description = "Elm",
|
||||||
.color = 0x0e76ad,
|
.color = 0x0e76ad,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{ "elm" },
|
.extensions = .{"elm"},
|
||||||
.comment = "--",
|
.comment = "--",
|
||||||
.injections = "tree-sitter-elm/queries/injections.scm",
|
.injections = "tree-sitter-elm/queries/injections.scm",
|
||||||
};
|
};
|
||||||
|
|
@ -325,7 +325,7 @@ pub const markdown = .{
|
||||||
.description = "Markdown",
|
.description = "Markdown",
|
||||||
.color = 0x000000,
|
.color = 0x000000,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{"md", "smd"},
|
.extensions = .{ "md", "smd" },
|
||||||
.comment = "<!--",
|
.comment = "<!--",
|
||||||
.highlights = "tree-sitter-markdown/tree-sitter-markdown/queries/highlights.scm",
|
.highlights = "tree-sitter-markdown/tree-sitter-markdown/queries/highlights.scm",
|
||||||
.injections = "tree-sitter-markdown/tree-sitter-markdown/queries/injections.scm",
|
.injections = "tree-sitter-markdown/tree-sitter-markdown/queries/injections.scm",
|
||||||
|
|
@ -400,6 +400,19 @@ pub const nu = .{
|
||||||
.injections = "tree-sitter-nu/queries/nu/injections.scm",
|
.injections = "tree-sitter-nu/queries/nu/injections.scm",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const objc = .{
|
||||||
|
.description = "Objective-C",
|
||||||
|
.color = 0xE95325,
|
||||||
|
.icon = "",
|
||||||
|
.extensions = .{ "m", "objc" },
|
||||||
|
.comment = "//",
|
||||||
|
.highlights_list = .{
|
||||||
|
"tree-sitter-c/queries/highlights.scm",
|
||||||
|
"tree-sitter-objc/queries/highlights.scm",
|
||||||
|
},
|
||||||
|
.injections = "tree-sitter-objc/queries/injections.scm",
|
||||||
|
};
|
||||||
|
|
||||||
pub const ocaml = .{
|
pub const ocaml = .{
|
||||||
.description = "OCaml",
|
.description = "OCaml",
|
||||||
.color = 0xF18803,
|
.color = 0xF18803,
|
||||||
|
|
@ -435,7 +448,7 @@ pub const perl = .{
|
||||||
.description = "Perl",
|
.description = "Perl",
|
||||||
.color = 0x005c81,
|
.color = 0x005c81,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{"pl", "pm", "t"},
|
.extensions = .{ "pl", "pm", "t" },
|
||||||
.comment = "#",
|
.comment = "#",
|
||||||
.injections = "tree-sitter-perl/queries/injections.scm",
|
.injections = "tree-sitter-perl/queries/injections.scm",
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue