feat: Update type-list for ripgrep 7313dca

This commit is contained in:
Ed Page 2024-11-25 13:48:03 -06:00
parent ba61bb6f56
commit 4ff772d059

View file

@ -10,19 +10,23 @@
/// columns (inclusive). /// columns (inclusive).
#[rustfmt::skip] #[rustfmt::skip]
pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[ pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("ada", &["*.adb", "*.ads"]),
("agda", &["*.agda", "*.lagda"]), ("agda", &["*.agda", "*.lagda"]),
("aidl", &["*.aidl"]), ("aidl", &["*.aidl"]),
("alire", &["alire.toml"]),
("amake", &["*.mk", "*.bp"]), ("amake", &["*.mk", "*.bp"]),
("asciidoc", &["*.adoc", "*.asc", "*.asciidoc"]), ("asciidoc", &["*.adoc", "*.asc", "*.asciidoc"]),
("asm", &["*.asm", "*.s", "*.S"]), ("asm", &["*.asm", "*.s", "*.S"]),
("asp", &[ ("asp", &[
"*.aspx", "*.aspx.cs", "*.aspx.vb", "*.ascx", "*.ascx.cs", "*.ascx.vb", "*.aspx", "*.aspx.cs", "*.aspx.vb", "*.ascx", "*.ascx.cs",
"*.ascx.vb", "*.asp"
]), ]),
("ats", &["*.ats", "*.dats", "*.sats", "*.hats"]), ("ats", &["*.ats", "*.dats", "*.sats", "*.hats"]),
("avro", &["*.avdl", "*.avpr", "*.avsc"]), ("avro", &["*.avdl", "*.avpr", "*.avsc"]),
("awk", &["*.awk"]), ("awk", &["*.awk"]),
("bazel", &[ ("bazel", &[
"*.bazel", "*.bzl", "*.BUILD", "*.bazelrc", "BUILD", "WORKSPACE", "*.bazel", "*.bzl", "*.BUILD", "*.bazelrc", "BUILD", "MODULE.bazel",
"WORKSPACE", "WORKSPACE.bazel",
]), ]),
("bitbake", &["*.bb", "*.bbappend", "*.bbclass", "*.conf", "*.inc"]), ("bitbake", &["*.bb", "*.bbappend", "*.bbclass", "*.conf", "*.inc"]),
("brotli", &["*.br"]), ("brotli", &["*.br"]),
@ -30,6 +34,8 @@ pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("bzip2", &["*.bz2", "*.tbz2"]), ("bzip2", &["*.bz2", "*.tbz2"]),
("c", &["*.[chH]", "*.[chH].in", "*.cats"]), ("c", &["*.[chH]", "*.[chH].in", "*.cats"]),
("cabal", &["*.cabal"]), ("cabal", &["*.cabal"]),
("candid", &["*.did"]),
("carp", &["*.carp"]),
("cbor", &["*.cbor"]), ("cbor", &["*.cbor"]),
("cert", &[ ("cert", &[
// Certificate files: // Certificate files:
@ -51,6 +57,7 @@ pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("ceylon", &["*.ceylon"]), ("ceylon", &["*.ceylon"]),
("clojure", &["*.clj", "*.cljc", "*.cljs", "*.cljx"]), ("clojure", &["*.clj", "*.cljc", "*.cljs", "*.cljx"]),
("cmake", &["*.cmake", "CMakeLists.txt"]), ("cmake", &["*.cmake", "CMakeLists.txt"]),
("cml", &["*.cml"]),
("coffeescript", &["*.coffee"]), ("coffeescript", &["*.coffee"]),
("config", &["*.cfg", "*.conf", "*.config", "*.ini"]), ("config", &["*.cfg", "*.conf", "*.config", "*.ini"]),
("coq", &["*.v"]), ("coq", &["*.v"]),
@ -68,14 +75,17 @@ pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("cython", &["*.pyx", "*.pxi", "*.pxd"]), ("cython", &["*.pyx", "*.pxi", "*.pxd"]),
("d", &["*.d"]), ("d", &["*.d"]),
("dart", &["*.dart"]), ("dart", &["*.dart"]),
("devicetree", &["*.dts", "*.dtsi"]),
("dhall", &["*.dhall"]), ("dhall", &["*.dhall"]),
("diff", &["*.patch", "*.diff"]), ("diff", &["*.patch", "*.diff"]),
("dita", &["*.dita", "*.ditamap", "*.ditaval"]),
("docker", &["*Dockerfile*"]), ("docker", &["*Dockerfile*"]),
("dockercompose", &["docker-compose.yml", "docker-compose.*.yml"]),
("dvc", &["Dvcfile", "*.dvc"]), ("dvc", &["Dvcfile", "*.dvc"]),
("ebuild", &["*.ebuild"]), ("ebuild", &["*.ebuild", "*.eclass"]),
("edn", &["*.edn"]), ("edn", &["*.edn"]),
("elisp", &["*.el"]), ("elisp", &["*.el"]),
("elixir", &["*.ex", "*.eex", "*.exs"]), ("elixir", &["*.ex", "*.eex", "*.exs", "*.heex", "*.leex", "*.livemd"]),
("elm", &["*.elm"]), ("elm", &["*.elm"]),
("erb", &["*.erb"]), ("erb", &["*.erb"]),
("erlang", &["*.erl", "*.hrl"]), ("erlang", &["*.erl", "*.hrl"]),
@ -92,13 +102,16 @@ pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("gap", &["*.g", "*.gap", "*.gi", "*.gd", "*.tst"]), ("gap", &["*.g", "*.gap", "*.gi", "*.gd", "*.tst"]),
("gn", &["*.gn", "*.gni"]), ("gn", &["*.gn", "*.gni"]),
("go", &["*.go"]), ("go", &["*.go"]),
("gprbuild", &["*.gpr"]),
("gradle", &["*.gradle"]), ("gradle", &["*.gradle"]),
("graphql", &["*.graphql", "*.graphqls"]),
("groovy", &["*.groovy", "*.gradle"]), ("groovy", &["*.groovy", "*.gradle"]),
("gzip", &["*.gz", "*.tgz"]), ("gzip", &["*.gz", "*.tgz"]),
("h", &["*.h", "*.hpp"]), ("h", &["*.h", "*.hpp"]),
("haml", &["*.haml"]), ("haml", &["*.haml"]),
("hare", &["*.ha"]),
("hbs", &["*.hbs"]), ("hbs", &["*.hbs"]),
("hs", &["*.hs", "*.lhs"]), ("hs", &["*.hs", "*.lhs", "*.cpphs", "*.c2hs", "*.hsc"]),
("html", &["*.htm", "*.html", "*.ejs"]), ("html", &["*.htm", "*.html", "*.ejs"]),
("hy", &["*.hy"]), ("hy", &["*.hy"]),
("idris", &["*.idr", "*.lidr"]), ("idris", &["*.idr", "*.lidr"]),
@ -106,7 +119,7 @@ pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("java", &["*.java", "*.jsp", "*.jspx", "*.properties"]), ("java", &["*.java", "*.jsp", "*.jspx", "*.properties"]),
("jinja", &["*.j2", "*.jinja", "*.jinja2"]), ("jinja", &["*.j2", "*.jinja", "*.jinja2"]),
("jl", &["*.jl"]), ("jl", &["*.jl"]),
("js", &["*.js", "*.jsx", "*.vue"]), ("js", &["*.js", "*.jsx", "*.vue", "*.cjs", "*.mjs"]),
("json", &["*.json"]), ("json", &["*.json"]),
("jsonl", &["*.jsonl"]), ("jsonl", &["*.jsonl"]),
("jupyter", &["*.ipynb", "*.jpynb"]), ("jupyter", &["*.ipynb", "*.jpynb"]),
@ -142,7 +155,7 @@ pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[
]), ]),
("lilypond", &["*.ly", "*.ily"]), ("lilypond", &["*.ly", "*.ily"]),
("lisp", &["*.el", "*.lisp", "*.lsp", "*.sc", "*.scm"]), ("lisp", &["*.el", "*.lisp", "*.lsp", "*.sc", "*.scm"]),
("lock", &["*.lock", "package-lock.json", "requirements.txt", "go.sum", "pnpm-lock.yaml"]), ("lock", &["*.lock", "package-lock.json", "composer.lock", "*.terraform.lock.hcl"]),
("log", &["*.log"]), ("log", &["*.log"]),
("lua", &["*.lua"]), ("lua", &["*.lua"]),
("lz4", &["*.lz4"]), ("lz4", &["*.lz4"]),
@ -157,14 +170,24 @@ pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("mako", &["*.mako", "*.mao"]), ("mako", &["*.mako", "*.mao"]),
("man", &["*.[0-9lnpx]", "*.[0-9][cEFMmpSx]"]), ("man", &["*.[0-9lnpx]", "*.[0-9][cEFMmpSx]"]),
("matlab", &["*.m"]), ("matlab", &["*.m"]),
("md", &["*.markdown", "*.md", "*.mdown", "*.mkdn"]), ("md", &[
"*.markdown",
"*.md",
"*.mdown",
"*.mdwn",
"*.mkd",
"*.mkdn",
"*.mdx",
]),
("meson", &["meson.build", "meson_options.txt"]), ("meson", &["meson.build", "meson_options.txt"]),
("minified", &["*.min.html", "*.min.css", "*.min.js"]), ("minified", &["*.min.html", "*.min.css", "*.min.js"]),
("mint", &["*.mint"]), ("mint", &["*.mint"]),
("mk", &["mkfile"]), ("mk", &["mkfile"]),
("ml", &["*.ml"]), ("ml", &["*.ml"]),
("motoko", &["*.mo"]),
("msbuild", &[ ("msbuild", &[
"*.csproj", "*.fsproj", "*.vcxproj", "*.proj", "*.props", "*.targets", "*.csproj", "*.fsproj", "*.vcxproj", "*.proj", "*.props", "*.targets",
"*.sln",
]), ]),
("nim", &["*.nim", "*.nimf", "*.nimble", "*.nims"]), ("nim", &["*.nim", "*.nimf", "*.nimble", "*.nims"]),
("nix", &["*.nix"]), ("nix", &["*.nix"]),
@ -175,13 +198,18 @@ pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("pascal", &["*.pas", "*.dpr", "*.lpr", "*.pp", "*.inc"]), ("pascal", &["*.pas", "*.dpr", "*.lpr", "*.pp", "*.inc"]),
("pdf", &["*.pdf"]), ("pdf", &["*.pdf"]),
("perl", &["*.perl", "*.pl", "*.PL", "*.plh", "*.plx", "*.pm", "*.t"]), ("perl", &["*.perl", "*.pl", "*.PL", "*.plh", "*.plx", "*.pm", "*.t"]),
("php", &["*.php", "*.php3", "*.php4", "*.php5", "*.phtml"]), ("php", &[
// note that PHP 6 doesn't exist
// See: https://wiki.php.net/rfc/php6
"*.php", "*.php3", "*.php4", "*.php5", "*.php7", "*.php8",
"*.pht", "*.phtml"
]),
("po", &["*.po"]), ("po", &["*.po"]),
("pod", &["*.pod"]), ("pod", &["*.pod"]),
("postscript", &["*.eps", "*.ps"]), ("postscript", &["*.eps", "*.ps"]),
("protobuf", &["*.proto"]), ("protobuf", &["*.proto"]),
("ps", &["*.cdxml", "*.ps1", "*.ps1xml", "*.psd1", "*.psm1"]), ("ps", &["*.cdxml", "*.ps1", "*.ps1xml", "*.psd1", "*.psm1"]),
("puppet", &["*.erb", "*.pp", "*.rb"]), ("puppet", &["*.epp", "*.erb", "*.pp", "*.rb"]),
("purs", &["*.purs"]), ("purs", &["*.purs"]),
("py", &[ ("py", &[
"*.py", "*.py",
@ -193,9 +221,15 @@ pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("qml", &["*.qml"]), ("qml", &["*.qml"]),
("r", &["*.R", "*.r", "*.Rmd", "*.Rnw"]), ("r", &["*.R", "*.r", "*.Rmd", "*.Rnw"]),
("racket", &["*.rkt"]), ("racket", &["*.rkt"]),
("raku", &[
"*.raku", "*.rakumod", "*.rakudoc", "*.rakutest",
"*.p6", "*.pl6", "*.pm6"
]),
("rdoc", &["*.rdoc"]), ("rdoc", &["*.rdoc"]),
("readme", &["README*", "*README"]), ("readme", &["README*", "*README"]),
("reasonml", &["*.re", "*.rei"]),
("red", &["*.r", "*.red", "*.reds"]), ("red", &["*.r", "*.red", "*.reds"]),
("rescript", &["*.res", "*.resi"]),
("robot", &["*.robot"]), ("robot", &["*.robot"]),
("rst", &["*.rst"]), ("rst", &["*.rst"]),
("ruby", &[ ("ruby", &[
@ -237,6 +271,7 @@ pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("slim", &["*.skim", "*.slim", "*.slime"]), ("slim", &["*.skim", "*.slim", "*.slime"]),
("smarty", &["*.tpl"]), ("smarty", &["*.tpl"]),
("sml", &["*.sml", "*.sig"]), ("sml", &["*.sml", "*.sig"]),
("solidity", &["*.sol"]),
("soy", &["*.soy"]), ("soy", &["*.soy"]),
("spark", &["*.spark"]), ("spark", &["*.spark"]),
("spec", &["*.spec"]), ("spec", &["*.spec"]),
@ -256,13 +291,19 @@ pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("tex", &["*.tex", "*.ltx", "*.cls", "*.sty", "*.bib", "*.dtx", "*.ins"]), ("tex", &["*.tex", "*.ltx", "*.cls", "*.sty", "*.bib", "*.dtx", "*.ins"]),
("texinfo", &["*.texi"]), ("texinfo", &["*.texi"]),
("textile", &["*.textile"]), ("textile", &["*.textile"]),
("tf", &["*.tf"]), ("tf", &[
"*.tf", "*.auto.tfvars", "terraform.tfvars", "*.tf.json",
"*.auto.tfvars.json", "terraform.tfvars.json", "*.terraformrc",
"terraform.rc", "*.tfrc",
]),
("thrift", &["*.thrift"]), ("thrift", &["*.thrift"]),
("toml", &["*.toml"]), ("toml", &["*.toml"]),
("ts", &["*.ts", "*.tsx"]), ("ts", &["*.ts", "*.tsx", "*.cts", "*.mts"]),
("twig", &["*.twig"]), ("twig", &["*.twig"]),
("txt", &["*.txt"]), ("txt", &["*.txt"]),
("typoscript", &["*.typoscript"]), ("typoscript", &["*.typoscript"]),
("usd", &["*.usd", "*.usda", "*.usdc"]),
("v", &["*.v"]),
("vala", &["*.vala"]), ("vala", &["*.vala"]),
("vb", &["*.vb"]), ("vb", &["*.vb"]),
("vcl", &["*.vcl"]), ("vcl", &["*.vcl"]),