Compare commits

...
Author SHA1 Message Date
swaits bae9716298 feat(codely-languages): 0.1.1 2024-12-10 21:54:04 +00:00
3 changed files with 38 additions and 22 deletions

No files matched your search

+1 -1
View File
@@ -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)
```
+36 -20
View File
@@ -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 -1
View File
@@ -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"