aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--frontend/static/languages/_groups.json1
-rw-r--r--frontend/static/languages/_list.json1
-rw-r--r--frontend/static/languages/code_typst.json50
3 files changed, 52 insertions, 0 deletions
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"
+ ]
+}