feat(codely-languages): 0.1.1
This commit is contained in:
3 files changed
+38
-22
No files matched your search
@@ -13,7 +13,7 @@ Configure `codly` with the languages. Like this:
|
||||
#import "@preview/codly:1.0.0": *
|
||||
#show: codly-init
|
||||
|
||||
#import "@preview/codly-languages:0.1.0": *
|
||||
#import "@preview/codly-languages:0.1.1": *
|
||||
#codly(languages: codly-languages)
|
||||
```
|
||||
|
||||
|
||||
@@ -113,26 +113,42 @@
|
||||
|
||||
// add aliases for our languages (e.g. so both "```typ" and "```typst" work)
|
||||
let aliases = (
|
||||
aarch64: ("arm"),
|
||||
coffeescript: ("coffee"),
|
||||
cplusplus: ("cpp", "cxx", "c++"),
|
||||
csharp: ("cs", "c#"),
|
||||
docker: ("dockerfile"),
|
||||
fsharp: ("fs", "f#"),
|
||||
go: ("golang"),
|
||||
neovim: ("nvim"),
|
||||
objectivec: ("objc", "obj-c"),
|
||||
powershell: ("ps1"),
|
||||
ruby: ("rb"),
|
||||
rust: ("rs"),
|
||||
sass: ("scss"),
|
||||
shellscript: ("bash", "shell"),
|
||||
ssh-config: ("ssh"),
|
||||
typescript: ("ts"),
|
||||
typst: ("typ", "typc", "typm"),
|
||||
text: ("txt"),
|
||||
vim: ("vimscript"),
|
||||
visualbasic: ("vb"),
|
||||
aarch64: ("arm"),
|
||||
clojure: ("clj"),
|
||||
clojurescript: ("cljs"),
|
||||
coffeescript: ("coffee"),
|
||||
cplusplus: ("cpp", "cxx", "c++"),
|
||||
csharp: ("cs", "c#"),
|
||||
docker: ("dockerfile"),
|
||||
elixir: ("ex"),
|
||||
erlang: ("erl"),
|
||||
fsharp: ("fs", "f#"),
|
||||
go: ("golang"),
|
||||
haskell: ("hs"),
|
||||
javascript: ("js"),
|
||||
julia: ("jl"),
|
||||
kotlin: ("kt"),
|
||||
neovim: ("nvim"),
|
||||
objectivec: ("objc", "obj-c"),
|
||||
ocaml: ("ml"),
|
||||
perl: ("pl"),
|
||||
powershell: ("ps1"),
|
||||
python: ("py"),
|
||||
ruby: ("rb"),
|
||||
rust: ("rs"),
|
||||
sass: ("scss"),
|
||||
scala: ("sc"),
|
||||
shellscript: ("bash", "shell", "sh"),
|
||||
solidity: ("sol"),
|
||||
ssh-config: ("ssh"),
|
||||
stylus: ("styl"),
|
||||
terraform: ("tf"),
|
||||
text: ("txt"),
|
||||
typescript: ("ts"),
|
||||
typst: ("typ", "typc", "typm"),
|
||||
vim: ("vimscript"),
|
||||
visualbasic: ("vb"),
|
||||
yaml: ("yml")
|
||||
)
|
||||
for (lang, aliases) in aliases {
|
||||
for alias in aliases {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "codly-languages"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
entrypoint = "lib.typ"
|
||||
authors = ["Stephen Waits <steve@waits.net>"]
|
||||
license = "MIT"
|
||||
|
||||
Reference in new issue
Block a user