refactor: zig fmt

This commit is contained in:
CJ van den Berg 2026-02-15 20:15:42 +01:00
parent d6e867378b
commit 837844220c
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 5 additions and 5 deletions

View file

@ -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 };
} }

View file

@ -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",
@ -435,7 +435,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",
}; };