From 772e4a1d014c096e9723574bea347ec0581045e7 Mon Sep 17 00:00:00 2001 From: igs <34313633+iggedi-ig-ig@users.noreply.github.com> Date: Sun, 22 Dec 2024 00:45:00 +0100 Subject: feat(language): add code_typst (@iggedi-ig-ig) (#6117) --- frontend/static/languages/_groups.json | 1 + frontend/static/languages/_list.json | 1 + frontend/static/languages/code_typst.json | 50 +++++++++++++++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 frontend/static/languages/code_typst.json diff --git a/frontend/static/languages/_groups.json b/frontend/static/languages/_groups.json index 6335a4790..512b259e1 100644 --- a/frontend/static/languages/_groups.json +++ b/frontend/static/languages/_groups.json @@ -606,6 +606,7 @@ "code_lua", "code_luau", "code_latex", + "code_typst", "code_matlab", "code_sql", "code_perl", diff --git a/frontend/static/languages/_list.json b/frontend/static/languages/_list.json index c6b02836b..460cfbd13 100644 --- a/frontend/static/languages/_list.json +++ b/frontend/static/languages/_list.json @@ -339,6 +339,7 @@ ,"code_lua" ,"code_luau" ,"code_latex" + ,"code_typst" ,"code_matlab" ,"code_sql" ,"code_perl" diff --git a/frontend/static/languages/code_typst.json b/frontend/static/languages/code_typst.json new file mode 100644 index 000000000..bd9f85323 --- /dev/null +++ b/frontend/static/languages/code_typst.json @@ -0,0 +1,50 @@ +{ + "name": "code_typst", + "noLazyMode": true, + "ligatures": false, + "words": [ + "#use", + "#set par(justify: true)", + "#show", + "#set", + "#let", + "#par", + "#figure", + "#underline", + "#smallcaps", + "#grid", + "#box", + "#place", + "#import", + "#link", + "#lorem(50)", + "let", + "#{", + "}", + "#(", + ")", + "#[", + "]", + "$", + "@", + "*", + "-", + "_", + "\\", + "/", + "//", + "floor(x)", + "cal(A)", + "NN", + "RR", + ">", + "<", + ">=", + "gt.eq.not", + "sum_(k=1)^oo", + "pi", + "&=", + "vec", + "mat" + ] +} -- cgit v1.2.3