test(codly-languages): update tests for next version

This commit is contained in:
swaits committed 2025-03-04 14:46:32 -08:00
1 parent f044759876
commit 193137fe9b
3 files changed
+438 -74

No files matched your search

+13 -9
View File
@@ -100,6 +100,7 @@
h: (name: "C Header", color: rgb("#005f91"), icon: __icon("cheader.svg")), //VSCode Icons
//C#
cs: (name: "C#", color: rgb("#68217a"), icon: __icon("csharp.svg")), //Devicons
csharp: (name: "C#", color: rgb("#68217a"), icon: __icon("csharp.svg")), //Devicons
csx: (name: "C#", color: rgb("#68217a"), icon: __icon("csharp.svg")), //Devicons
//C++
C: (name: "C++", color: rgb("#004482"), icon: __icon("cplusplus.svg")), //Devicons
@@ -130,14 +131,14 @@
//CoffeeScript
Cakefile: (name: "CoffeeScript", color: rgb("#28334c"), icon: __icon("coffeescript.svg")), //Devicons
cson: (name: "CoffeeScript", color: rgb("#28334c"), icon: __icon("coffeescript.svg")), //Devicons
coffeescript: (name: "CoffeeScript", color: rgb("#244776"), icon: __icon("coffeescript.svg")), //Devicons
coffeescript: (name: "CoffeeScript", color: rgb("#244776"), icon: __icon("coffeescript.svg")), //Devicons
coffee: (name: "CoffeeScript", color: rgb("#28334c"), icon: __icon("coffeescript.svg")), //Devicons
//CSV
csv: (name: "CSV", color: rgb("#829ec2"), icon: __icon("text.svg")), //VSCode Icons
tsv: (name: "TSV", color: rgb("#829ec2"), icon: __icon("text.svg")), //VSCode Icons
//CpuInfo
cpuinfo: (name: "CpuInfo", color: rgb("#3c70cc"), icon: __emoji(emoji.info)),
//Crontab
//Crontab
crontab: (name: "Crontab", color: rgb("#e84f69"), icon: __emoji(emoji.clock.alarm)),
tab: (name: "Crontab", color: rgb("#e84f69"), icon: __emoji(emoji.clock.alarm)),
//Crystal
@@ -268,7 +269,7 @@
haskell: (name: "Haskell", color: rgb("#5e5187"), icon: __icon("haskell.svg")), //Devicons
hs: (name: "Haskell", color: rgb("#5e5187"), icon: __icon("haskell.svg")), //Devicons
lhs: (name: "Haskell", color: rgb("#5e5187"), icon: __icon("haskell.svg")), //Devicons
//Haxe
//Haxe
haxe: (name: "Haxe", color: rgb("#ea8220"), icon: __icon("haxe.svg")), //Devicons
//Highlight non-printables
show_nonprintable: (name: "Non Printables", color: rgb("#829ec2"), icon: __icon("text.svg")), //VSCode Icons
@@ -350,7 +351,7 @@
llvm: (name: "LLVM", color: rgb("#09637d"), icon: __icon("llvm.svg")), //Devicons
//log
log: (name: "log", color: rgb("#00bd02"), icon: __icon("log.svg")), //VSCode Icons
//Lua
//Lua
lua: (name: "Lua", color: rgb("#000080"), icon: __icon("lua.svg")), //Devicons
//Makefile
make: (name: "Makefile", color: rgb("#030303"), icon: __icon("makefile.svg")), //VSCode Icons
@@ -361,10 +362,10 @@
mak: (name: "Makefile", color: rgb("#030303"), icon: __icon("makefile.svg")), //VSCode Icons
mk: (name: "Makefile", color: rgb("#030303"), icon: __icon("makefile.svg")), //VSCode Icons
//Manpage
manpage: (name: "Manpage", color: rgb("#ef4469"), icon: __emoji(emoji.quest)),
man: (name: "Manpage", color: rgb("#ef4469"), icon: __emoji(emoji.quest)),
groff: (name: "Manpage", color: rgb("#ef4469"), icon: __emoji(emoji.quest)),
troff: (name: "Manpage", color: rgb("#ef4469"), icon: __emoji(emoji.quest)),
manpage: (name: "Manpage", color: rgb("#ef4469"), icon: __emoji(emoji.quest)),
man: (name: "Manpage", color: rgb("#ef4469"), icon: __emoji(emoji.quest)),
groff: (name: "Manpage", color: rgb("#ef4469"), icon: __emoji(emoji.quest)),
troff: (name: "Manpage", color: rgb("#ef4469"), icon: __emoji(emoji.quest)),
//Markdown
md: (name: "Markdown", color: rgb("#755838"), icon: __icon("markdown.svg")), //VSCode Icons
mdown: (name: "Markdown", color: rgb("#755838"), icon: __icon("markdown.svg")), //VSCode Icons
@@ -584,8 +585,11 @@
//SSH
ssh: (name: "SSH", color: rgb("#231f20"), icon: __icon("ssh.svg")), //Devicons
ssh_config: (name: "SSH Config", color: rgb("#231f20"), icon: __icon("ssh.svg")), //Devicons
ssh-config: (name: "SSH Config", color: rgb("#231f20"), icon: __icon("ssh.svg")), //Devicons
sshd_config: (name: "SSHD Config", color: rgb("#231f20"), icon: __icon("ssh.svg")), //Devicons
sshd-config: (name: "SSHD Config", color: rgb("#231f20"), icon: __icon("ssh.svg")), //Devicons
known_hosts: (name: "Known Hosts", color: rgb("#231f20"), icon: __icon("ssh.svg")), //Devicons
known-hosts: (name: "Known Hosts", color: rgb("#231f20"), icon: __icon("ssh.svg")), //Devicons
//Strace
strace: (name: "Strace", color: rgb("#f59217"), icon: __icon("strace.svg")), //Wikimedia
//Stylus
@@ -687,5 +691,5 @@
yml: (name: "YAML", color: rgb("#cb171e"), icon: __icon("yaml.svg")), //Devicons
//Zig
zig: (name: "Zig", color: rgb("#f7a41d"), icon: __icon("zig.svg")), //Devicons
)
)
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 75 KiB

After

Width:  |  Height:  |  Size: 65 KiB

+425 -65
View File
@@ -1,167 +1,527 @@
#import "/lib.typ": *
#let base-languages = (
#let test-languages = (
"_gvimrc",
"_vimrc",
"aarch64",
"ad",
"ada",
"adb",
"adoc",
"adp",
"ads",
"agda",
"angular",
"ansible",
"apache",
"apl",
"Appfile",
"applescript",
"Appraisals",
"arm",
"as",
"asa",
"asciidoc",
"ascript",
"asm",
"asp",
"authorized_keys",
"authorized_keys2",
"awk",
"bash",
"bat",
"Berksfile",
"bib",
"bibtex",
"Brewfile",
"bsh",
"build",
"builder",
"C",
"c",
"cabal",
"cairo",
"Cakefile",
"camlp4",
"capfile",
"cc",
"cfg",
"cgi",
"Cheffile",
"cl",
"clisp",
"clj",
"cljs",
"clojure",
"clojurescript",
"cm",
"cmake",
"cmakecache",
"cmakecommands",
"cmd",
"coffee",
"coffeescript",
"commands_bash",
"comp",
"conf",
"cp",
"cplusplus",
"cpp",
"cpuinfo",
"cpy",
"cr",
"crontab",
"crypttab",
"crystal",
"cs",
"csharp",
"cson",
"css",
"csv",
"csx",
"cts",
"cu",
"cuda",
"cxx",
"d",
"dart",
"ddl",
"dektop",
"Deliverfile",
"di",
"diff",
"dml",
"docker",
"Dockerfile",
"dockerfile",
"DOT",
"dot",
"dotenv",
"dpr",
"dtml",
"el",
"elixir",
"elm",
"emacs",
"email",
"Emakefile",
"emakefile",
"eml",
"env",
"envvars",
"epp",
"erb",
"erbsql",
"erl",
"erlang",
"ex",
"exs",
"F",
"f",
"F03",
"f03",
"F08",
"f08",
"F77",
"f77",
"F90",
"f90",
"F95",
"f95",
"fasl",
"fastcgi_params",
"Fastfile",
"fcgi",
"FG",
"fish",
"FOR",
"for",
"fortran",
"FPP",
"fpp",
"frag",
"fs",
"fsh",
"fshader",
"fsharp",
"fsi",
"fstab",
"fsx",
"Gemfile",
"gemspec",
"geom",
"git",
"glsl",
"gnu",
"GNUmakefile",
"gnuplot",
"go",
"golang",
"gp",
"gpl",
"gpr",
"gql",
"gradle",
"graphql",
"graphqls",
"groff",
"groovy",
"grpc",
"gs",
"gsh",
"gshader",
"Guardfile",
"gv",
"gvimrc",
"gvy",
"gyp",
"gypi",
"h",
"haml",
"handlebars",
"haskell",
"haxe",
"hcl",
"hgrc",
"hh",
"hosts",
"hpp",
"hrl",
"hs",
"HTACCESS",
"htaccess",
"HTGROUPS",
"htgroups",
"htm",
"html",
"html5",
"HTPASSWD",
"htpasswd",
"http",
"hxx",
"inc",
"INF",
"inf",
"INI",
"ini",
"inl",
"ipp",
"irbrc",
"j2",
"java",
"javadoc",
"javascript",
"jbuilder",
"jinja",
"jinja2",
"jl",
"jq",
"js",
"json",
"jsonnet",
"jsp",
"julia",
"known-hosts",
"known_hosts",
"kotlin",
"kt",
"kts",
"l",
"latex",
"lean",
"less",
"lhs",
"libjsonnet",
"libsonnet",
"lisp",
"ll",
"llvm",
"lng",
"log",
"lsp",
"ltx",
"lua",
"M",
"m",
"mac",
"mak",
"make",
"Makefile",
"makefile",
"man",
"manpage",
"markdn",
"markdown",
"matlab",
"mboxz",
"mbx",
"md",
"mdown",
"mediawikerpanel",
"mediawiki",
"meminfo",
"mesh",
"mk",
"ml",
"mli",
"mll",
"mly",
"mm",
"msg",
"mtab",
"mts",
"mud",
"multimarkdown",
"mysql",
"namelist",
"nasm",
"neovim",
"nextflow",
"nginx",
"nim",
"nimble",
"nims",
"ninja",
"nix",
"nixos",
"nvim",
"obj-c",
"objc",
"objective_c",
"objectivec",
"ocaml",
"ocamllex",
"OCamlMakefile",
"ocamlyacc",
"opml",
"org",
"orgmode",
"p",
"pas",
"pascal",
"passwd",
"patch",
"pbtxt",
"perl",
"php",
"php3",
"php4",
"php5",
"php7",
"phps",
"phpt",
"phtml",
"pip",
"Pipfile",
"PL",
"pl",
"plot",
"plt",
"pm",
"pod",
"podspec",
"postgresql",
"powershell",
"pp",
"prawn",
"processing",
"prolog",
"properties",
"proto",
"protodevel",
"prototxt",
"ps1",
"pub",
"puppet",
"purescript",
"purs",
"pxd",
"pxi",
"py",
"py3",
"pyi",
"python",
"pyw",
"pyx",
"qml",
"qmlproject",
"R",
"r",
"rabl",
"racket",
"rahit",
"rails",
"rake",
"Rakefile",
"Rantfile",
"rb",
"rbx",
"rcall",
"rchit",
"rd",
"re",
"REG",
"reg",
"rego",
"resolv",
"resource",
"rest",
"restructuredtext",
"rgen",
"rhtml",
"rint",
"rjs",
"rkt",
"rmiss",
"robot",
"Rprofile",
"rpy",
"rs",
"rss",
"rst",
"ruby",
"rust",
"rxml",
"S",
"s",
"sass",
"sbt",
"sc",
"scala",
"Scanfile",
"scgi_params",
"scm",
"SConscript",
"SConstruct",
"sconstruct",
"scss",
"sh",
"shell",
"shell_unix_generic",
"shellscript",
"show_nonprintable",
"shtml",
"sig",
"simplecov",
"skim",
"slim",
"sml",
"Snakefile",
"Snapfile",
"sol",
"solidity",
"spl",
"splunk",
"sql",
"sqlite",
"ss",
"ssh",
"ssh-config",
"ssh_config",
"sshd-config",
"sshd_config",
"strace",
"styl",
"stylus",
"sublime-build",
"sublime-color-scheme",
"sublime-commands",
"sublime-completions",
"sublime-keymap",
"sublime-macro",
"sublime-menu",
"sublime-mousemap",
"sublime-project",
"sublime-settings",
"sublime-Syntax",
"sublime-theme",
"sv",
"svelte",
"svg",
"svh",
"svlt",
"swift",
"syslog",
"systemverilog",
"t",
"tab",
"task",
"tcl",
"terraform",
"tesc",
"tese",
"tex",
"text",
"textile",
"textpb",
"tf",
"tfstate",
"tfvars",
"thor",
"Thorfile",
"tld",
"tml",
"tmpl",
"toml",
"tpl",
"troff",
"ts",
"tsv",
"tsx",
"twig",
"txt",
"typ",
"typc",
"typescript",
"typescriptreact",
"typm",
"typst",
"uml",
"URL",
"url",
"uwsgi_params",
"V",
"v",
"Vagrantfile",
"vala",
"varlink",
"vb",
"verilog",
"vert",
"vh",
"vim",
"viml",
"vimrc",
"vimscript",
"visualbasic",
"vs",
"vsh",
"vshader",
"vue",
"vy",
"vyper",
"wasm",
"wiki",
"wikipedia",
"wscript",
"xhtml",
"xml",
"xsd",
"xslt",
"yaml",
"yasm",
"yaws",
"yml",
"zig",
"zsh",
)
#for lang in base-languages {
#for lang in test-languages {
if lang not in codly-languages.keys() {
panic("warning: language " + lang + " not found in codly-languages")
}
}
Found all base languages!
#let aliases = (
"arm",
"bash",
"clj",
"cljs",
"coffee",
"cpp",
"cs",
"cxx",
"cu",
"dockerfile",
"erl",
"ex",
"fs",
"golang",
"hs",
"html5",
"jl",
"js",
"kt",
"ml",
"nixos",
"nvim",
"obj-c",
"objc",
"pl",
"ps1",
"py",
"rb",
"rs",
"sc",
"scss",
"sh",
"shell",
"sol",
"spl",
"ssh",
"styl",
"tf",
"ts",
"txt",
"typ",
"typc",
"typm",
"vb",
"vimscript",
"yml"
)
#for lang in aliases {
if lang not in codly-languages.keys() {
panic("error: language " + lang + " not found in codly-languages")
}
}
Found all language aliases!
#if codly-languages.keys().len() != base-languages.len() + aliases.len() {
panic("error: language count is incorrect")
}
Found all languages!
Language key count matches: #codly-languages.keys().len() keys.