feat: add more languages

This commit is contained in:
Jozef Steinhübl 2024-10-03 20:39:00 +02:00
parent 2230b726a7
commit 917a011970
No known key found for this signature in database
GPG key ID: E6BC90C91973B08F
2 changed files with 39 additions and 4 deletions

View file

@ -1,6 +1,6 @@
id = "discord-presence" id = "discord-presence"
name = "Discord Presence" name = "Discord Presence"
version = "0.2.0" version = "0.2.1"
schema_version = 1 schema_version = 1
authors = ["Jozef Steinhübl <contact@xhyrom.dev>"] authors = ["Jozef Steinhübl <contact@xhyrom.dev>"]
description = "Presence for your beautiful discord account :)" description = "Presence for your beautiful discord account :)"
@ -13,6 +13,7 @@ languages = [
"Ada", "Ada",
"Aiken", "Aiken",
"Amber", "Amber",
"Ansible",
"AsciiDoc", "AsciiDoc",
"Assembly", "Assembly",
"AWK", "AWK",
@ -20,6 +21,7 @@ languages = [
"Shell Script", "Shell Script",
"Beancount", "Beancount",
"Bend", "Bend",
"bitbake",
"Blade", "Blade",
"Blueprint", "Blueprint",
"BQN", "BQN",
@ -30,13 +32,21 @@ languages = [
"Cap'n Proto", "Cap'n Proto",
"Cedar", "Cedar",
"CFEngine", "CFEngine",
"cfhtml",
"cfml",
"cfscript",
"Cpp2",
"CSV", "CSV",
"Gherkin", "Gherkin",
"CUE", "CUE",
"Curry", "Curry",
"Cylc",
"D", "D",
"Dafny",
"DBML", "DBML",
"devicetree",
"Dockerfile", "Dockerfile",
"DuckyScript",
"Earthfile", "Earthfile",
"EJS", "EJS",
"Elisp", "Elisp",
@ -44,7 +54,9 @@ languages = [
"env", "env",
"Exograph", "Exograph",
"Fish", "Fish",
"FlatBuffers",
"Fortran", "Fortran",
"Fountain",
"FSharp", "FSharp",
"GDScript", "GDScript",
"Godot Resource", "Godot Resource",
@ -59,13 +71,19 @@ languages = [
"GraphQL", "GraphQL",
"Groovy", "Groovy",
"GROQ", "GROQ",
"HLSL",
"http", "http",
"Inform 6",
"ini", "ini",
"Java", "Java",
"Properties",
"Jinja2",
"Jsonnet", "Jsonnet",
"Julia", "Julia",
"Just", "Just",
"Kdl",
"Kotlin", "Kotlin",
"BibTeX",
"LaTeX", "LaTeX",
"Ledger", "Ledger",
"LESS", "LESS",
@ -82,12 +100,14 @@ languages = [
"Navi Stream", "Navi Stream",
"CMake", "CMake",
"Nginx", "Nginx",
"Nickel",
"Nim", "Nim",
"Nix", "Nix",
"Noir", "Noir",
"Nu", "Nu",
"Odin", "Odin",
"Pact", "Pact",
"Perl",
"Perm", "Perm",
"Pest", "Pest",
"pica200", "pica200",
@ -95,6 +115,7 @@ languages = [
"Animation.txt", "Animation.txt",
"Pdxinfo", "Pdxinfo",
"PowerShell", "PowerShell",
"Pug",
"QML", "QML",
"R", "R",
"Rainbow CSV", "Rainbow CSV",
@ -107,13 +128,18 @@ languages = [
"reST", "reST",
"Scala", "Scala",
"SCSS", "SCSS",
"Simula",
"Slim", "Slim",
"Smithy", "Smithy",
"Snakemake",
"Solidity", "Solidity",
"Sourcepawn",
"SQL", "SQL",
"Stan",
"bazelrc", "bazelrc",
"Starlark", "Starlark",
"Strace", "Strace",
"Surreal Query Language",
"Swift", "Swift",
"Templ", "Templ",
"tmux", "tmux",
@ -139,7 +165,6 @@ languages = [
"JSONC", "JSONC",
"Markdown-Inline", "Markdown-Inline",
"Markdown", "Markdown",
"proto",
"Regex", "Regex",
"Rust", "Rust",
"TSX", "TSX",
@ -158,15 +183,17 @@ languages = [
"Haskell", "Haskell",
"HTML", "HTML",
"Lua", "Lua",
"Dune",
"OCaml Interface", "OCaml Interface",
"OCaml", "OCaml",
"PHP", "PHP",
"PHPDoc", "PHPDoc",
"Prisma", "Prisma",
"Proto",
"PureScript", "PureScript",
"Racket", "Racket",
"ERB", "ERB",
"rbs", "RBS",
"Ruby", "Ruby",
"Scheme", "Scheme",
"Svelte", "Svelte",
@ -177,5 +204,6 @@ languages = [
"Uiua", "Uiua",
"Vue.js", "Vue.js",
"Zig", "Zig",
"edge",
] ]
language_ids = { "Ada" = "ada", "Aiken" = "aiken", "Amber" = "amber", "AsciiDoc" = "asciidoc", "Assembly" = "asm", "AWK" = "awk", "Python" = "python", "Shell Script" = "bash", "Beancount" = "beancount", "Bend" = "bend", "Blade" = "blade", "Blueprint" = "blueprint", "BQN" = "BQN", "Brainfuck" = "brainfuck", "C3" = "c3", "Cadence" = "cadence", "Cairo" = "cairo", "Cap'n Proto" = "capnp", "Cedar" = "cedar", "CFEngine" = "cfengine", "CSV" = "csv", "Gherkin" = "gherkin", "CUE" = "cue", "Curry" = "curry", "D" = "d", "DBML" = "dbml", "Dockerfile" = "dockerfile", "Earthfile" = "earthfile", "EJS" = "ejs", "Elisp" = "elisp", "Handlebars" = "glimmer", "env" = "env", "Exograph" = "exograph", "Fish" = "fish", "Fortran" = "fortran", "FSharp" = "fsharp", "GDScript" = "gdscript", "Godot Resource" = "godot_resource", "Gemini" = "gemini", "Diff" = "diff", "Git Attributes" = "gitattributes", "Git Commit" = "gitcommit", "Git Config" = "gitconfig", "Git Ignore" = "gitignore", "Git Rebase" = "gitrebase", "Go Sum" = "gosum", "GraphQL" = "graphql", "Groovy" = "groovy", "GROQ" = "groq", "http" = "http", "ini" = "ini", "Java" = "java", "Jsonnet" = "jsonnet", "Julia" = "julia", "Just" = "just", "Kotlin" = "kotlin", "LaTeX" = "latex", "Ledger" = "ledger", "LESS" = "less", "LilyPond" = "lilypond", "LilyPond Scheme" = "lilypond_scheme", "Liquid" = "liquid", "LOG" = "log", "Lox" = "lox", "Luau" = "luau", "Make" = "make", "MATLAB" = "matlab", "Meson" = "meson", "Navi" = "navi", "Navi Stream" = "navi_stream", "CMake" = "cmake", "Nginx" = "nginx", "Nim" = "nim", "Nix" = "nix", "Noir" = "noir", "Nu" = "nu", "Odin" = "odin", "Pact" = "pact", "Perm" = "perm", "Pest" = "pest", "pica200" = "pica200", "Pkl" = "pkl", "Animation.txt" = "animationtxt", "Pdxinfo" = "pdxinfo", "PowerShell" = "powershell", "QML" = "qml", "R" = "r", "Rainbow CSV" = "csv", "Rainbow TSV" = "tsv", "RCL" = "rcl", "rego" = "rego", "ReScript" = "rescript", "Roc" = "roc", "RON" = "ron", "reST" = "rst", "Scala" = "scala", "SCSS" = "scss", "Slim" = "slim", "Smithy" = "smithy", "Solidity" = "solidity", "SQL" = "sql", "bazelrc" = "bazelrc", "Starlark" = "starlark", "Strace" = "strace", "Swift" = "swift", "Templ" = "templ", "tmux" = "tmux", "Twig" = "twig", "Typst" = "typst", "Unison" = "unison", "V" = "v", "Vala" = "vala", "Verilog" = "verilog", "VHS" = "vhs", "Wgsl" = "wgsl", "WIT" = "wit", "XML" = "xml", "C" = "c", "C++" = "cpp", "CSS" = "css", "Go" = "go", "Go Mod" = "gomod", "Go Work" = "gowork", "JavaScript" = "javascript", "JSDoc" = "jsdoc", "JSON" = "json", "JSONC" = "jsonc", "Markdown-Inline" = "markdown-inline", "Markdown" = "markdown", "proto" = "proto", "Regex" = "regex", "Rust" = "rust", "TSX" = "tsx", "TypeScript" = "typescript", "YAML" = "yaml", "Astro" = "astro", "Clojure" = "clojure", "CSharp" = "csharp", "Dart" = "dart", "Elixir" = "elixir", "HEEX" = "heex", "Elm" = "elm", "Erlang" = "erlang", "Gleam" = "gleam", "GLSL" = "glsl", "Haskell" = "haskell", "HTML" = "html", "Lua" = "lua", "OCaml Interface" = "ocaml-interface", "OCaml" = "ocaml", "PHP" = "php", "PHPDoc" = "phpdoc", "Prisma" = "prisma", "PureScript" = "purescript", "Racket" = "racket", "ERB" = "erb", "rbs" = "rbs", "Ruby" = "ruby", "Scheme" = "scheme", "Svelte" = "svelte", "HCL" = "hcl", "Terraform Vars" = "terraform-vars", "Terraform" = "terraform", "TOML" = "toml", "Uiua" = "uiua", "Vue.js" = "vue", "Zig" = "zig" } language_ids = { "Ada" = "ada", "Aiken" = "aiken", "Amber" = "amber", "Ansible" = "ansible", "AsciiDoc" = "asciidoc", "Assembly" = "asm", "AWK" = "awk", "Python" = "python", "Shell Script" = "bash", "Beancount" = "beancount", "Bend" = "bend", "bitbake" = "bitbake", "Blade" = "blade", "Blueprint" = "blueprint", "BQN" = "BQN", "Brainfuck" = "brainfuck", "C3" = "c3", "Cadence" = "cadence", "Cairo" = "cairo", "Cap'n Proto" = "capnp", "Cedar" = "cedar", "CFEngine" = "cfengine", "cfhtml" = "cfhtml", "cfml" = "cfml", "cfscript" = "cfscript", "Cpp2" = "cpp2", "CSV" = "csv", "Gherkin" = "gherkin", "CUE" = "cue", "Curry" = "curry", "Cylc" = "cylc", "D" = "d", "Dafny" = "dafny", "DBML" = "dbml", "devicetree" = "devicetree", "Dockerfile" = "dockerfile", "DuckyScript" = "duckyscript", "Earthfile" = "earthfile", "EJS" = "ejs", "Elisp" = "elisp", "Handlebars" = "glimmer", "env" = "env", "Exograph" = "exograph", "Fish" = "fish", "FlatBuffers" = "flatbuffers", "Fortran" = "fortran", "Fountain" = "fountain", "FSharp" = "fsharp", "GDScript" = "gdscript", "Godot Resource" = "godot_resource", "Gemini" = "gemini", "Diff" = "diff", "Git Attributes" = "gitattributes", "Git Commit" = "gitcommit", "Git Config" = "gitconfig", "Git Ignore" = "gitignore", "Git Rebase" = "gitrebase", "Go Sum" = "gosum", "GraphQL" = "graphql", "Groovy" = "groovy", "GROQ" = "groq", "HLSL" = "hlsl", "http" = "http", "Inform 6" = "inform6", "ini" = "ini", "Java" = "java", "Properties" = "properties", "Jinja2" = "jinja2", "Jsonnet" = "jsonnet", "Julia" = "julia", "Just" = "just", "Kdl" = "kdl", "Kotlin" = "kotlin", "BibTeX" = "bibtex", "LaTeX" = "latex", "Ledger" = "ledger", "LESS" = "less", "LilyPond" = "lilypond", "LilyPond Scheme" = "lilypond_scheme", "Liquid" = "liquid", "LOG" = "log", "Lox" = "lox", "Luau" = "luau", "Make" = "make", "MATLAB" = "matlab", "Meson" = "meson", "Navi" = "navi", "Navi Stream" = "navi_stream", "CMake" = "cmake", "Nginx" = "nginx", "Nickel" = "nickel", "Nim" = "nim", "Nix" = "nix", "Noir" = "noir", "Nu" = "nu", "Odin" = "odin", "Pact" = "pact", "Perl" = "perl", "Perm" = "perm", "Pest" = "pest", "pica200" = "pica200", "Pkl" = "pkl", "Animation.txt" = "animationtxt", "Pdxinfo" = "pdxinfo", "PowerShell" = "powershell", "Pug" = "pug", "QML" = "qml", "R" = "r", "Rainbow CSV" = "csv", "Rainbow TSV" = "tsv", "RCL" = "rcl", "rego" = "rego", "ReScript" = "rescript", "Roc" = "roc", "RON" = "ron", "reST" = "rst", "Scala" = "scala", "SCSS" = "scss", "Simula" = "simula", "Slim" = "slim", "Smithy" = "smithy", "Snakemake" = "snakemake", "Solidity" = "solidity", "Sourcepawn" = "sourcepawn", "SQL" = "sql", "Stan" = "stan", "bazelrc" = "bazelrc", "Starlark" = "starlark", "Strace" = "strace", "Surreal Query Language" = "surql", "Swift" = "swift", "Templ" = "templ", "tmux" = "tmux", "Twig" = "twig", "Typst" = "typst", "Unison" = "unison", "V" = "v", "Vala" = "vala", "Verilog" = "verilog", "VHS" = "vhs", "Wgsl" = "wgsl", "WIT" = "wit", "XML" = "xml", "C" = "c", "C++" = "cpp", "CSS" = "css", "Go" = "go", "Go Mod" = "gomod", "Go Work" = "gowork", "JavaScript" = "javascript", "JSDoc" = "jsdoc", "JSON" = "json", "JSONC" = "jsonc", "Markdown-Inline" = "markdown-inline", "Markdown" = "markdown", "Regex" = "regex", "Rust" = "rust", "TSX" = "tsx", "TypeScript" = "typescript", "YAML" = "yaml", "Astro" = "astro", "Clojure" = "clojure", "CSharp" = "csharp", "Dart" = "dart", "Elixir" = "elixir", "HEEX" = "heex", "Elm" = "elm", "Erlang" = "erlang", "Gleam" = "gleam", "GLSL" = "glsl", "Haskell" = "haskell", "HTML" = "html", "Lua" = "lua", "Dune" = "dune", "OCaml Interface" = "ocaml-interface", "OCaml" = "ocaml", "PHP" = "php", "PHPDoc" = "phpdoc", "Prisma" = "prisma", "Proto" = "proto", "PureScript" = "purescript", "Racket" = "racket", "ERB" = "erb", "RBS" = "rbs", "Ruby" = "ruby", "Scheme" = "scheme", "Svelte" = "svelte", "HCL" = "hcl", "Terraform Vars" = "terraform-vars", "Terraform" = "terraform", "TOML" = "toml", "Uiua" = "uiua", "Vue.js" = "vue", "Zig" = "zig", "edge" = "edge"}

View file

@ -39,6 +39,11 @@ process_language_files() {
done done
} }
hardcoded_languages() {
LANGUAGES+=" \"edge\",\n"
LANGUAGE_IDS+=" \"edge\" = \"edge\","
}
RESPONSE=$(curl -s "https://api.github.com/repos/zed-industries/zed/git/trees/main?recursive=1" -H "Authorization: Bearer ${GITHUB_TOKEN}") RESPONSE=$(curl -s "https://api.github.com/repos/zed-industries/zed/git/trees/main?recursive=1" -H "Authorization: Bearer ${GITHUB_TOKEN}")
EXTENSIONS_RESPONSE=$(curl -s "https://raw.githubusercontent.com/zed-industries/extensions/main/.gitmodules") EXTENSIONS_RESPONSE=$(curl -s "https://raw.githubusercontent.com/zed-industries/extensions/main/.gitmodules")
REPOSITORIES=($(echo "$EXTENSIONS_RESPONSE" | grep -oP 'url = \K.*')) REPOSITORIES=($(echo "$EXTENSIONS_RESPONSE" | grep -oP 'url = \K.*'))
@ -59,6 +64,8 @@ done
echo "Processing zed-industries/zed" echo "Processing zed-industries/zed"
process_language_files "$FILES" "zed-industries" "zed" "crates/languages/src/**/config.toml" "extensions/**/languages/**/config.toml" process_language_files "$FILES" "zed-industries" "zed" "crates/languages/src/**/config.toml" "extensions/**/languages/**/config.toml"
hardcoded_languages
LANGUAGES+="]" LANGUAGES+="]"
LANGUAGE_IDS+="}" LANGUAGE_IDS+="}"