feat: add shtml (superhtml) file type
This commit is contained in:
parent
810f4be90e
commit
e638368116
3 changed files with 15 additions and 2 deletions
|
@ -52,6 +52,7 @@ pub fn build(b: *std.Build) void {
|
|||
ts_queryfile(b, tree_sitter_dep, "tree-sitter-ssh-config/queries/highlights.scm"),
|
||||
ts_queryfile(b, tree_sitter_dep, "tree-sitter-scala/queries/scala/highlights.scm"),
|
||||
ts_queryfile(b, tree_sitter_dep, "tree-sitter-scheme/queries/highlights.scm"),
|
||||
ts_queryfile(b, tree_sitter_dep, "tree-sitter-superhtml/tree-sitter-superhtml/queries/highlights.scm"),
|
||||
ts_queryfile(b, tree_sitter_dep, "tree-sitter-toml/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"),
|
||||
|
@ -76,6 +77,7 @@ pub fn build(b: *std.Build) void {
|
|||
ts_queryfile(b, tree_sitter_dep, "tree-sitter-purescript/queries/injections.scm"),
|
||||
ts_queryfile(b, tree_sitter_dep, "tree-sitter-purescript/vim_queries/injections.scm"),
|
||||
ts_queryfile(b, tree_sitter_dep, "tree-sitter-rust/queries/injections.scm"),
|
||||
ts_queryfile(b, tree_sitter_dep, "tree-sitter-superhtml/tree-sitter-superhtml/queries/injections.scm"),
|
||||
ts_queryfile(b, tree_sitter_dep, "tree-sitter-zig/queries/injections.scm"),
|
||||
},
|
||||
});
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
.dependencies = .{
|
||||
.@"tree-sitter" = .{
|
||||
.url = "https://github.com/neurocyte/tree-sitter/releases/download/master-93fd2b9c4f082e0cf88eec21846977ba832957af/source.tar.gz",
|
||||
.hash = "1220521d2c4b4073739b7cdf56b665c191ea60d1d3cdfe9d9fb3c4372e5019126cda",
|
||||
.url = "https://github.com/neurocyte/tree-sitter/releases/download/master-fd32e76148fa681b9aca82bea0140869f69355b9/source.tar.gz",
|
||||
.hash = "1220803e05b4fe889452f399e64061c2b372c71972bc1c5bad55e41aedd5679d36a9",
|
||||
},
|
||||
},
|
||||
.paths = .{
|
||||
|
|
|
@ -122,6 +122,17 @@ pub const html = .{
|
|||
.formatter = .{ "superhtml", "fmt", "--stdin" },
|
||||
};
|
||||
|
||||
pub const shtml = .{
|
||||
.color = 0xe54d26,
|
||||
.icon = "",
|
||||
.extensions = .{"shtml"},
|
||||
.comment = "<!--",
|
||||
.highlights = "tree-sitter-superhtml/tree-sitter-superhtml/queries/highlights.scm",
|
||||
.injections = "tree-sitter-superhtml/tree-sitter-superhtml/queries/injections.scm",
|
||||
.language_server = .{ "superhtml", "lsp" },
|
||||
.formatter = .{ "superhtml", "fmt", "--stdin-super" },
|
||||
};
|
||||
|
||||
pub const java = .{
|
||||
.color = 0xEA2D2E,
|
||||
.icon = "",
|
||||
|
|
Loading…
Add table
Reference in a new issue