summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-10-28 16:49:41 +0200
committerLaurenz <laurmaedje@gmail.com>2022-10-31 08:57:44 +0100
commit66ad023519e5250f88f9066a2607efe5442a7b76 (patch)
treeb858ec6e488edb4cdd639fd4078adab42c00c33f /tools
parent95e9134a3c7d7a14d8c8928413fdffc665671895 (diff)
Split up some files
Diffstat (limited to 'tools')
-rw-r--r--tools/support/typst.tmLanguage.json14
1 files changed, 10 insertions, 4 deletions
diff --git a/tools/support/typst.tmLanguage.json b/tools/support/typst.tmLanguage.json
index 7a1c8458..74351323 100644
--- a/tools/support/typst.tmLanguage.json
+++ b/tools/support/typst.tmLanguage.json
@@ -142,7 +142,7 @@
"captures": { "1": { "name": "punctuation.definition.reference.typst" } }
},
{
- "begin": "(#)(pub|let|set|show|wrap)\\b",
+ "begin": "(#)(let|set|show|wrap|apply|select)\\b",
"end": "\n|(;)|(?=])",
"beginCaptures": {
"0": { "name": "keyword.other.typst" },
@@ -180,7 +180,7 @@
"captures": { "1": { "name": "punctuation.definition.keyword.typst" } }
},
{
- "begin": "(#)(import|include)\\b",
+ "begin": "(#)(import|include|export)\\b",
"end": "\n|(;)|(?=])",
"beginCaptures": {
"0": { "name": "keyword.control.import.typst" },
@@ -253,7 +253,7 @@
},
{
"name": "keyword.other.typst",
- "match": "\\b(pub|let|set|show|wrap|as|in|from)\\b"
+ "match": "\\b(let|as|in|from|set|show|wrap|apply|select)\\b"
},
{
"name": "keyword.control.conditional.typst",
@@ -265,7 +265,7 @@
},
{
"name": "keyword.control.import.typst",
- "match": "\\b(import|include)\\b"
+ "match": "\\b(import|include|export)\\b"
},
{
"name": "keyword.control.flow.typst",
@@ -344,6 +344,12 @@
"name": "constant.character.escape.string.typst",
"match": "\\\\([\\\\\"nrt]|u\\{?[0-9a-zA-Z]*\\}?)"
}]
+ },
+ {
+ "name": "string.other.math.typst",
+ "begin": "\\$",
+ "end": "\\$",
+ "captures": { "0": { "name": "punctuation.defintion.string.math.typst" } }
}
]
},