feat: add descriptive names for file types
This commit is contained in:
parent
ce0633b665
commit
c3021de372
2 changed files with 62 additions and 2 deletions
|
@ -11,6 +11,7 @@ pub const FileType = @This();
|
||||||
color: u24,
|
color: u24,
|
||||||
icon: []const u8,
|
icon: []const u8,
|
||||||
name: []const u8,
|
name: []const u8,
|
||||||
|
description: []const u8,
|
||||||
lang_fn: LangFn,
|
lang_fn: LangFn,
|
||||||
extensions: []const []const u8,
|
extensions: []const []const u8,
|
||||||
highlights: [:0]const u8,
|
highlights: [:0]const u8,
|
||||||
|
@ -119,6 +120,7 @@ fn load_file_types(comptime Namespace: type) []const FileType {
|
||||||
.color = if (@hasField(@TypeOf(args), "color")) args.color else 0xffffff,
|
.color = if (@hasField(@TypeOf(args), "color")) args.color else 0xffffff,
|
||||||
.icon = if (@hasField(@TypeOf(args), "icon")) args.icon else "",
|
.icon = if (@hasField(@TypeOf(args), "icon")) args.icon else "",
|
||||||
.name = lang,
|
.name = lang,
|
||||||
|
.description = args.description,
|
||||||
.lang_fn = if (@hasField(@TypeOf(args), "parser")) args.parser else get_parser(lang),
|
.lang_fn = if (@hasField(@TypeOf(args), "parser")) args.parser else get_parser(lang),
|
||||||
.extensions = vec(args.extensions),
|
.extensions = vec(args.extensions),
|
||||||
.comment = args.comment,
|
.comment = args.comment,
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
pub const agda = .{
|
pub const agda = .{
|
||||||
|
.description = "Agda",
|
||||||
.extensions = .{"agda"},
|
.extensions = .{"agda"},
|
||||||
.comment = "--",
|
.comment = "--",
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const bash = .{
|
pub const bash = .{
|
||||||
|
.description = "Bash",
|
||||||
.color = 0x3e474a,
|
.color = 0x3e474a,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{ "sh", "bash", ".profile" },
|
.extensions = .{ "sh", "bash", ".profile" },
|
||||||
|
@ -14,6 +16,7 @@ pub const bash = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const c = .{
|
pub const c = .{
|
||||||
|
.description = "C",
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{"c"},
|
.extensions = .{"c"},
|
||||||
.comment = "//",
|
.comment = "//",
|
||||||
|
@ -22,6 +25,7 @@ pub const c = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const @"c-sharp" = .{
|
pub const @"c-sharp" = .{
|
||||||
|
.description = "C#",
|
||||||
.color = 0x68217a,
|
.color = 0x68217a,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{"cs"},
|
.extensions = .{"cs"},
|
||||||
|
@ -30,6 +34,7 @@ pub const @"c-sharp" = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const conf = .{
|
pub const conf = .{
|
||||||
|
.description = "Config",
|
||||||
.color = 0x000000,
|
.color = 0x000000,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{ "conf", "config", ".gitconfig" },
|
.extensions = .{ "conf", "config", ".gitconfig" },
|
||||||
|
@ -39,6 +44,7 @@ pub const conf = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const cmake = .{
|
pub const cmake = .{
|
||||||
|
.description = "CMake",
|
||||||
.color = 0x004078,
|
.color = 0x004078,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{ "CMakeLists.txt", "cmake", "cmake.in" },
|
.extensions = .{ "CMakeLists.txt", "cmake", "cmake.in" },
|
||||||
|
@ -50,6 +56,7 @@ pub const cmake = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const cpp = .{
|
pub const cpp = .{
|
||||||
|
.description = "C++",
|
||||||
.color = 0x9c033a,
|
.color = 0x9c033a,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{ "cc", "cpp", "cxx", "hpp", "hxx", "h", "ipp", "ixx" },
|
.extensions = .{ "cc", "cpp", "cxx", "hpp", "hxx", "h", "ipp", "ixx" },
|
||||||
|
@ -64,6 +71,7 @@ pub const cpp = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const css = .{
|
pub const css = .{
|
||||||
|
.description = "CSS",
|
||||||
.color = 0x3d8fc6,
|
.color = 0x3d8fc6,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{"css"},
|
.extensions = .{"css"},
|
||||||
|
@ -71,11 +79,13 @@ pub const css = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const diff = .{
|
pub const diff = .{
|
||||||
|
.description = "Diff",
|
||||||
.extensions = .{ "diff", "patch" },
|
.extensions = .{ "diff", "patch" },
|
||||||
.comment = "#",
|
.comment = "#",
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const dockerfile = .{
|
pub const dockerfile = .{
|
||||||
|
.description = "Docker",
|
||||||
.color = 0x019bc6,
|
.color = 0x019bc6,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{ "Dockerfile", "dockerfile", "docker", "Containerfile", "container" },
|
.extensions = .{ "Dockerfile", "dockerfile", "docker", "Containerfile", "container" },
|
||||||
|
@ -83,6 +93,7 @@ pub const dockerfile = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const dtd = .{
|
pub const dtd = .{
|
||||||
|
.description = "DTD",
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{"dtd"},
|
.extensions = .{"dtd"},
|
||||||
.comment = "<!--",
|
.comment = "<!--",
|
||||||
|
@ -90,6 +101,7 @@ pub const dtd = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const elixir = .{
|
pub const elixir = .{
|
||||||
|
.description = "Elixir",
|
||||||
.color = 0x4e2a8e,
|
.color = 0x4e2a8e,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{ "ex", "exs" },
|
.extensions = .{ "ex", "exs" },
|
||||||
|
@ -100,6 +112,7 @@ pub const elixir = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const fish = .{
|
pub const fish = .{
|
||||||
|
.description = "Fish",
|
||||||
.extensions = .{"fish"},
|
.extensions = .{"fish"},
|
||||||
.comment = "#",
|
.comment = "#",
|
||||||
.parser = @import("file_type.zig").Parser("fish"),
|
.parser = @import("file_type.zig").Parser("fish"),
|
||||||
|
@ -107,6 +120,7 @@ pub const fish = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const @"git-rebase" = .{
|
pub const @"git-rebase" = .{
|
||||||
|
.description = "Git (rebase)",
|
||||||
.color = 0xf34f29,
|
.color = 0xf34f29,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{"git-rebase-todo"},
|
.extensions = .{"git-rebase-todo"},
|
||||||
|
@ -114,6 +128,7 @@ pub const @"git-rebase" = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const gitcommit = .{
|
pub const gitcommit = .{
|
||||||
|
.description = "Git (commit)",
|
||||||
.color = 0xf34f29,
|
.color = 0xf34f29,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{"COMMIT_EDITMSG"},
|
.extensions = .{"COMMIT_EDITMSG"},
|
||||||
|
@ -122,6 +137,7 @@ pub const gitcommit = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const gleam = .{
|
pub const gleam = .{
|
||||||
|
.description = "Gleam",
|
||||||
.color = 0xffaff3,
|
.color = 0xffaff3,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{"gleam"},
|
.extensions = .{"gleam"},
|
||||||
|
@ -131,6 +147,7 @@ pub const gleam = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const go = .{
|
pub const go = .{
|
||||||
|
.description = "Go",
|
||||||
.color = 0x00acd7,
|
.color = 0x00acd7,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{"go"},
|
.extensions = .{"go"},
|
||||||
|
@ -140,11 +157,13 @@ pub const go = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const hare = .{
|
pub const hare = .{
|
||||||
|
.description = "Hare",
|
||||||
.extensions = .{"ha"},
|
.extensions = .{"ha"},
|
||||||
.comment = "//",
|
.comment = "//",
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const haskell = .{
|
pub const haskell = .{
|
||||||
|
.description = "Haskell",
|
||||||
.color = 0x5E5185,
|
.color = 0x5E5185,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{"hs"},
|
.extensions = .{"hs"},
|
||||||
|
@ -153,6 +172,7 @@ pub const haskell = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const html = .{
|
pub const html = .{
|
||||||
|
.description = "HTML",
|
||||||
.color = 0xe54d26,
|
.color = 0xe54d26,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{"html"},
|
.extensions = .{"html"},
|
||||||
|
@ -163,6 +183,7 @@ pub const html = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const superhtml = .{
|
pub const superhtml = .{
|
||||||
|
.description = "SuperHTML",
|
||||||
.color = 0xe54d26,
|
.color = 0xe54d26,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{"shtml"},
|
.extensions = .{"shtml"},
|
||||||
|
@ -174,6 +195,7 @@ pub const superhtml = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const java = .{
|
pub const java = .{
|
||||||
|
.description = "Java",
|
||||||
.color = 0xEA2D2E,
|
.color = 0xEA2D2E,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{"java"},
|
.extensions = .{"java"},
|
||||||
|
@ -181,6 +203,7 @@ pub const java = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const javascript = .{
|
pub const javascript = .{
|
||||||
|
.description = "JavaScript",
|
||||||
.color = 0xf0db4f,
|
.color = 0xf0db4f,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{"js"},
|
.extensions = .{"js"},
|
||||||
|
@ -190,6 +213,7 @@ pub const javascript = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const json = .{
|
pub const json = .{
|
||||||
|
.description = "JSON",
|
||||||
.extensions = .{"json"},
|
.extensions = .{"json"},
|
||||||
.comment = "//",
|
.comment = "//",
|
||||||
.language_server = .{ "deno", "lsp" },
|
.language_server = .{ "deno", "lsp" },
|
||||||
|
@ -197,6 +221,7 @@ pub const json = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const julia = .{
|
pub const julia = .{
|
||||||
|
.description = "Julia",
|
||||||
.color = 0x4D64AE,
|
.color = 0x4D64AE,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{"jl"},
|
.extensions = .{"jl"},
|
||||||
|
@ -205,6 +230,7 @@ pub const julia = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const kdl = .{
|
pub const kdl = .{
|
||||||
|
.description = "KDL",
|
||||||
.color = 0x000000,
|
.color = 0x000000,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{"kdl"},
|
.extensions = .{"kdl"},
|
||||||
|
@ -212,6 +238,7 @@ pub const kdl = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const lua = .{
|
pub const lua = .{
|
||||||
|
.description = "Lua",
|
||||||
.color = 0x02027d,
|
.color = 0x02027d,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{"lua"},
|
.extensions = .{"lua"},
|
||||||
|
@ -222,11 +249,13 @@ pub const lua = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const make = .{
|
pub const make = .{
|
||||||
|
.description = "Make",
|
||||||
.extensions = .{ "makefile", "Makefile", "MAKEFILE", "GNUmakefile", "mk", "mak", "dsp" },
|
.extensions = .{ "makefile", "Makefile", "MAKEFILE", "GNUmakefile", "mk", "mak", "dsp" },
|
||||||
.comment = "#",
|
.comment = "#",
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const markdown = .{
|
pub const markdown = .{
|
||||||
|
.description = "Markdown",
|
||||||
.color = 0x000000,
|
.color = 0x000000,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{"md"},
|
.extensions = .{"md"},
|
||||||
|
@ -237,6 +266,7 @@ pub const markdown = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const @"markdown-inline" = .{
|
pub const @"markdown-inline" = .{
|
||||||
|
.description = "Markdown (inline)",
|
||||||
.color = 0x000000,
|
.color = 0x000000,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{},
|
.extensions = .{},
|
||||||
|
@ -246,12 +276,14 @@ pub const @"markdown-inline" = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const nasm = .{
|
pub const nasm = .{
|
||||||
|
.description = "Assembly Language (nasm)",
|
||||||
.extensions = .{ "asm", "nasm" },
|
.extensions = .{ "asm", "nasm" },
|
||||||
.comment = "#",
|
.comment = "#",
|
||||||
.injections = "tree-sitter-nasm/queries/injections.scm",
|
.injections = "tree-sitter-nasm/queries/injections.scm",
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const nim = .{
|
pub const nim = .{
|
||||||
|
.description = "Nim",
|
||||||
.color = 0xffe953,
|
.color = 0xffe953,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{"nim"},
|
.extensions = .{"nim"},
|
||||||
|
@ -260,6 +292,7 @@ pub const nim = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const nimble = .{
|
pub const nimble = .{
|
||||||
|
.description = "Nimble (nim)",
|
||||||
.color = 0xffe953,
|
.color = 0xffe953,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{"nimble"},
|
.extensions = .{"nimble"},
|
||||||
|
@ -269,11 +302,13 @@ pub const nimble = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const ninja = .{
|
pub const ninja = .{
|
||||||
|
.description = "Ninja",
|
||||||
.extensions = .{"ninja"},
|
.extensions = .{"ninja"},
|
||||||
.comment = "#",
|
.comment = "#",
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const nix = .{
|
pub const nix = .{
|
||||||
|
.description = "Nix",
|
||||||
.color = 0x5277C3,
|
.color = 0x5277C3,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{"nix"},
|
.extensions = .{"nix"},
|
||||||
|
@ -282,6 +317,7 @@ pub const nix = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const nu = .{
|
pub const nu = .{
|
||||||
|
.description = "Nushell",
|
||||||
.color = 0x3AA675,
|
.color = 0x3AA675,
|
||||||
.icon = ">",
|
.icon = ">",
|
||||||
.extensions = .{ "nu", "nushell" },
|
.extensions = .{ "nu", "nushell" },
|
||||||
|
@ -292,6 +328,7 @@ pub const nu = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const ocaml = .{
|
pub const ocaml = .{
|
||||||
|
.description = "OCaml",
|
||||||
.color = 0xF18803,
|
.color = 0xF18803,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{ "ml", "mli" },
|
.extensions = .{ "ml", "mli" },
|
||||||
|
@ -301,15 +338,17 @@ pub const ocaml = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const odin = .{
|
pub const odin = .{
|
||||||
|
.description = "Odin",
|
||||||
.extensions = .{"odin"},
|
.extensions = .{"odin"},
|
||||||
.comment = "//",
|
.comment = "//",
|
||||||
.parser = @import("file_type.zig").Parser("odin"),
|
.parser = @import("file_type.zig").Parser("odin"),
|
||||||
.injections = "tree-sitter-odin/queries/injections.scm",
|
.injections = "tree-sitter-odin/queries/injections.scm",
|
||||||
.language_server = .{ "ols" },
|
.language_server = .{"ols"},
|
||||||
.formatter = .{ "odinfmt", "-stdin" },
|
.formatter = .{ "odinfmt", "-stdin" },
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const openscad = .{
|
pub const openscad = .{
|
||||||
|
.description = "OpenSCAD",
|
||||||
.color = 0x000000,
|
.color = 0x000000,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{"scad"},
|
.extensions = .{"scad"},
|
||||||
|
@ -319,12 +358,14 @@ pub const openscad = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const org = .{
|
pub const org = .{
|
||||||
|
.description = "Org Mode",
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{"org"},
|
.extensions = .{"org"},
|
||||||
.comment = "#",
|
.comment = "#",
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const php = .{
|
pub const php = .{
|
||||||
|
.description = "PHP",
|
||||||
.color = 0x6181b6,
|
.color = 0x6181b6,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{"php"},
|
.extensions = .{"php"},
|
||||||
|
@ -333,6 +374,7 @@ pub const php = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const purescript = .{
|
pub const purescript = .{
|
||||||
|
.description = "PureScript",
|
||||||
.color = 0x14161a,
|
.color = 0x14161a,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{"purs"},
|
.extensions = .{"purs"},
|
||||||
|
@ -341,20 +383,23 @@ pub const purescript = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const python = .{
|
pub const python = .{
|
||||||
|
.description = "Python",
|
||||||
.color = 0xffd845,
|
.color = 0xffd845,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{"py", "pyi"},
|
.extensions = .{ "py", "pyi" },
|
||||||
.comment = "#",
|
.comment = "#",
|
||||||
.first_line_matches = .{ .prefix = "#!", .content = "python" },
|
.first_line_matches = .{ .prefix = "#!", .content = "python" },
|
||||||
.language_server = .{"pylsp"},
|
.language_server = .{"pylsp"},
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const regex = .{
|
pub const regex = .{
|
||||||
|
.description = "Regular expression",
|
||||||
.extensions = .{},
|
.extensions = .{},
|
||||||
.comment = "#",
|
.comment = "#",
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const ruby = .{
|
pub const ruby = .{
|
||||||
|
.description = "Ruby",
|
||||||
.color = 0xd91404,
|
.color = 0xd91404,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{"rb"},
|
.extensions = .{"rb"},
|
||||||
|
@ -363,6 +408,7 @@ pub const ruby = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const rust = .{
|
pub const rust = .{
|
||||||
|
.description = "Rust",
|
||||||
.color = 0x000000,
|
.color = 0x000000,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{"rs"},
|
.extensions = .{"rs"},
|
||||||
|
@ -372,16 +418,19 @@ pub const rust = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const scheme = .{
|
pub const scheme = .{
|
||||||
|
.description = "Scheme",
|
||||||
.extensions = .{ "scm", "ss", "el" },
|
.extensions = .{ "scm", "ss", "el" },
|
||||||
.comment = ";",
|
.comment = ";",
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const @"ssh-config" = .{
|
pub const @"ssh-config" = .{
|
||||||
|
.description = "SSH config",
|
||||||
.extensions = .{".ssh/config"},
|
.extensions = .{".ssh/config"},
|
||||||
.comment = "#",
|
.comment = "#",
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const swift = .{
|
pub const swift = .{
|
||||||
|
.description = "Swift",
|
||||||
.color = 0xf05138,
|
.color = 0xf05138,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{ "swift", "swiftinterface" },
|
.extensions = .{ "swift", "swiftinterface" },
|
||||||
|
@ -391,6 +440,7 @@ pub const swift = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const toml = .{
|
pub const toml = .{
|
||||||
|
.description = "TOML",
|
||||||
.extensions = .{ "toml", "ini" },
|
.extensions = .{ "toml", "ini" },
|
||||||
.comment = "#",
|
.comment = "#",
|
||||||
.highlights = "tree-sitter-toml/queries/highlights.scm",
|
.highlights = "tree-sitter-toml/queries/highlights.scm",
|
||||||
|
@ -398,6 +448,7 @@ pub const toml = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const typescript = .{
|
pub const typescript = .{
|
||||||
|
.description = "TypeScript",
|
||||||
.color = 0x007acc,
|
.color = 0x007acc,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{ "ts", "tsx" },
|
.extensions = .{ "ts", "tsx" },
|
||||||
|
@ -406,6 +457,7 @@ pub const typescript = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const typst = .{
|
pub const typst = .{
|
||||||
|
.description = "Typst",
|
||||||
.color = 0x23b6bc,
|
.color = 0x23b6bc,
|
||||||
.icon = "t",
|
.icon = "t",
|
||||||
.extensions = .{ "typst", "typ" },
|
.extensions = .{ "typst", "typ" },
|
||||||
|
@ -416,6 +468,7 @@ pub const typst = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const vim = .{
|
pub const vim = .{
|
||||||
|
.description = "Vimscript",
|
||||||
.color = 0x007f00,
|
.color = 0x007f00,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{"vim"},
|
.extensions = .{"vim"},
|
||||||
|
@ -425,6 +478,7 @@ pub const vim = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const xml = .{
|
pub const xml = .{
|
||||||
|
.description = "XML",
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{"xml"},
|
.extensions = .{"xml"},
|
||||||
.comment = "<!--",
|
.comment = "<!--",
|
||||||
|
@ -434,6 +488,7 @@ pub const xml = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const yaml = .{
|
pub const yaml = .{
|
||||||
|
.description = "YAML",
|
||||||
.color = 0x000000,
|
.color = 0x000000,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{ "yaml", "yml" },
|
.extensions = .{ "yaml", "yml" },
|
||||||
|
@ -441,6 +496,7 @@ pub const yaml = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const zig = .{
|
pub const zig = .{
|
||||||
|
.description = "Zig",
|
||||||
.color = 0xf7a41d,
|
.color = 0xf7a41d,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{ "zig", "zon" },
|
.extensions = .{ "zig", "zon" },
|
||||||
|
@ -451,6 +507,7 @@ pub const zig = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const ziggy = .{
|
pub const ziggy = .{
|
||||||
|
.description = "Ziggy",
|
||||||
.color = 0xf7a41d,
|
.color = 0xf7a41d,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{ "ziggy", "zgy" },
|
.extensions = .{ "ziggy", "zgy" },
|
||||||
|
@ -459,6 +516,7 @@ pub const ziggy = .{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const @"ziggy-schema" = .{
|
pub const @"ziggy-schema" = .{
|
||||||
|
.description = "Ziggy (schema)",
|
||||||
.color = 0xf7a41d,
|
.color = 0xf7a41d,
|
||||||
.icon = "",
|
.icon = "",
|
||||||
.extensions = .{ "ziggy-schema", "zyg-schema" },
|
.extensions = .{ "ziggy-schema", "zyg-schema" },
|
||||||
|
|
Loading…
Add table
Reference in a new issue