feat: add yaml file type
This commit is contained in:
parent
c9a3933b7f
commit
d476a9a178
3 changed files with 10 additions and 2 deletions
|
@ -56,6 +56,7 @@ pub fn build(b: *std.Build) void {
|
||||||
ts_queryfile(b, tree_sitter_dep, "tree-sitter-typescript/queries/highlights.scm"),
|
ts_queryfile(b, tree_sitter_dep, "tree-sitter-typescript/queries/highlights.scm"),
|
||||||
ts_queryfile(b, tree_sitter_dep, "tree-sitter-xml/queries/dtd/highlights.scm"),
|
ts_queryfile(b, tree_sitter_dep, "tree-sitter-xml/queries/dtd/highlights.scm"),
|
||||||
ts_queryfile(b, tree_sitter_dep, "tree-sitter-xml/queries/xml/highlights.scm"),
|
ts_queryfile(b, tree_sitter_dep, "tree-sitter-xml/queries/xml/highlights.scm"),
|
||||||
|
ts_queryfile(b, tree_sitter_dep, "tree-sitter-yaml/queries/highlights.scm"),
|
||||||
ts_queryfile(b, tree_sitter_dep, "tree-sitter-zig/queries/highlights.scm"),
|
ts_queryfile(b, tree_sitter_dep, "tree-sitter-zig/queries/highlights.scm"),
|
||||||
ts_queryfile(b, tree_sitter_dep, "tree-sitter-ziggy/tree-sitter-ziggy/queries/highlights.scm"),
|
ts_queryfile(b, tree_sitter_dep, "tree-sitter-ziggy/tree-sitter-ziggy/queries/highlights.scm"),
|
||||||
ts_queryfile(b, tree_sitter_dep, "tree-sitter-ziggy/tree-sitter-ziggy-schema/queries/highlights.scm"),
|
ts_queryfile(b, tree_sitter_dep, "tree-sitter-ziggy/tree-sitter-ziggy-schema/queries/highlights.scm"),
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
|
|
||||||
.dependencies = .{
|
.dependencies = .{
|
||||||
.@"tree-sitter" = .{
|
.@"tree-sitter" = .{
|
||||||
.url = "https://github.com/neurocyte/tree-sitter/releases/download/master-bb237e72ae16e534b89d5652ba22976331e99832/source.tar.gz",
|
.url = "https://github.com/neurocyte/tree-sitter/releases/download/master-93fd2b9c4f082e0cf88eec21846977ba832957af/source.tar.gz",
|
||||||
.hash = "122043374e3f079e12d5e669e76f042fd9beec0f562fc6a5d95b2b0de5c29280a6ea",
|
.hash = "1220521d2c4b4073739b7cdf56b665c191ea60d1d3cdfe9d9fb3c4372e5019126cda",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
.paths = .{
|
.paths = .{
|
||||||
|
|
|
@ -321,6 +321,13 @@ pub const xml = .{
|
||||||
.first_line_matches = .{ .prefix = "<?xml " },
|
.first_line_matches = .{ .prefix = "<?xml " },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const yaml = .{
|
||||||
|
.color = 0x000000,
|
||||||
|
.icon = "",
|
||||||
|
.extensions = .{"yaml", "yml"},
|
||||||
|
.comment = "#",
|
||||||
|
};
|
||||||
|
|
||||||
pub const zig = .{
|
pub const zig = .{
|
||||||
.color = 0xf7a41d,
|
.color = 0xf7a41d,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
|
|
Loading…
Add table
Reference in a new issue