mirror of
https://github.com/xHyroM/zed-discord-presence.git
synced 2024-12-21 11:41:06 +01:00
feat: add more languages
This commit is contained in:
parent
2230b726a7
commit
917a011970
2 changed files with 39 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
|||
id = "discord-presence"
|
||||
name = "Discord Presence"
|
||||
version = "0.2.0"
|
||||
version = "0.2.1"
|
||||
schema_version = 1
|
||||
authors = ["Jozef Steinhübl <contact@xhyrom.dev>"]
|
||||
description = "Presence for your beautiful discord account :)"
|
||||
|
@ -13,6 +13,7 @@ languages = [
|
|||
"Ada",
|
||||
"Aiken",
|
||||
"Amber",
|
||||
"Ansible",
|
||||
"AsciiDoc",
|
||||
"Assembly",
|
||||
"AWK",
|
||||
|
@ -20,6 +21,7 @@ languages = [
|
|||
"Shell Script",
|
||||
"Beancount",
|
||||
"Bend",
|
||||
"bitbake",
|
||||
"Blade",
|
||||
"Blueprint",
|
||||
"BQN",
|
||||
|
@ -30,13 +32,21 @@ languages = [
|
|||
"Cap'n Proto",
|
||||
"Cedar",
|
||||
"CFEngine",
|
||||
"cfhtml",
|
||||
"cfml",
|
||||
"cfscript",
|
||||
"Cpp2",
|
||||
"CSV",
|
||||
"Gherkin",
|
||||
"CUE",
|
||||
"Curry",
|
||||
"Cylc",
|
||||
"D",
|
||||
"Dafny",
|
||||
"DBML",
|
||||
"devicetree",
|
||||
"Dockerfile",
|
||||
"DuckyScript",
|
||||
"Earthfile",
|
||||
"EJS",
|
||||
"Elisp",
|
||||
|
@ -44,7 +54,9 @@ languages = [
|
|||
"env",
|
||||
"Exograph",
|
||||
"Fish",
|
||||
"FlatBuffers",
|
||||
"Fortran",
|
||||
"Fountain",
|
||||
"FSharp",
|
||||
"GDScript",
|
||||
"Godot Resource",
|
||||
|
@ -59,13 +71,19 @@ languages = [
|
|||
"GraphQL",
|
||||
"Groovy",
|
||||
"GROQ",
|
||||
"HLSL",
|
||||
"http",
|
||||
"Inform 6",
|
||||
"ini",
|
||||
"Java",
|
||||
"Properties",
|
||||
"Jinja2",
|
||||
"Jsonnet",
|
||||
"Julia",
|
||||
"Just",
|
||||
"Kdl",
|
||||
"Kotlin",
|
||||
"BibTeX",
|
||||
"LaTeX",
|
||||
"Ledger",
|
||||
"LESS",
|
||||
|
@ -82,12 +100,14 @@ languages = [
|
|||
"Navi Stream",
|
||||
"CMake",
|
||||
"Nginx",
|
||||
"Nickel",
|
||||
"Nim",
|
||||
"Nix",
|
||||
"Noir",
|
||||
"Nu",
|
||||
"Odin",
|
||||
"Pact",
|
||||
"Perl",
|
||||
"Perm",
|
||||
"Pest",
|
||||
"pica200",
|
||||
|
@ -95,6 +115,7 @@ languages = [
|
|||
"Animation.txt",
|
||||
"Pdxinfo",
|
||||
"PowerShell",
|
||||
"Pug",
|
||||
"QML",
|
||||
"R",
|
||||
"Rainbow CSV",
|
||||
|
@ -107,13 +128,18 @@ languages = [
|
|||
"reST",
|
||||
"Scala",
|
||||
"SCSS",
|
||||
"Simula",
|
||||
"Slim",
|
||||
"Smithy",
|
||||
"Snakemake",
|
||||
"Solidity",
|
||||
"Sourcepawn",
|
||||
"SQL",
|
||||
"Stan",
|
||||
"bazelrc",
|
||||
"Starlark",
|
||||
"Strace",
|
||||
"Surreal Query Language",
|
||||
"Swift",
|
||||
"Templ",
|
||||
"tmux",
|
||||
|
@ -139,7 +165,6 @@ languages = [
|
|||
"JSONC",
|
||||
"Markdown-Inline",
|
||||
"Markdown",
|
||||
"proto",
|
||||
"Regex",
|
||||
"Rust",
|
||||
"TSX",
|
||||
|
@ -158,15 +183,17 @@ languages = [
|
|||
"Haskell",
|
||||
"HTML",
|
||||
"Lua",
|
||||
"Dune",
|
||||
"OCaml Interface",
|
||||
"OCaml",
|
||||
"PHP",
|
||||
"PHPDoc",
|
||||
"Prisma",
|
||||
"Proto",
|
||||
"PureScript",
|
||||
"Racket",
|
||||
"ERB",
|
||||
"rbs",
|
||||
"RBS",
|
||||
"Ruby",
|
||||
"Scheme",
|
||||
"Svelte",
|
||||
|
@ -177,5 +204,6 @@ languages = [
|
|||
"Uiua",
|
||||
"Vue.js",
|
||||
"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"}
|
||||
|
|
|
@ -39,6 +39,11 @@ process_language_files() {
|
|||
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}")
|
||||
EXTENSIONS_RESPONSE=$(curl -s "https://raw.githubusercontent.com/zed-industries/extensions/main/.gitmodules")
|
||||
REPOSITORIES=($(echo "$EXTENSIONS_RESPONSE" | grep -oP 'url = \K.*'))
|
||||
|
@ -59,6 +64,8 @@ done
|
|||
echo "Processing zed-industries/zed"
|
||||
process_language_files "$FILES" "zed-industries" "zed" "crates/languages/src/**/config.toml" "extensions/**/languages/**/config.toml"
|
||||
|
||||
hardcoded_languages
|
||||
|
||||
LANGUAGES+="]"
|
||||
LANGUAGE_IDS+="}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue