summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-03-02 15:37:16 +0100
committerLaurenz <laurmaedje@gmail.com>2021-03-02 15:37:16 +0100
commit36adbe4b80e57613244adb87301c81c0a23f67f7 (patch)
tree6ba7d4727e2f88f07fd4dfd5ed54bcdb962444b1 /tools
parentaaada5b69cf4512c5827674d5f80df8694320cf5 (diff)
Fix highlighting of arguments in code 🎨
Diffstat (limited to 'tools')
-rw-r--r--tools/support/typst.tmLanguage.json16
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/support/typst.tmLanguage.json b/tools/support/typst.tmLanguage.json
index 1f9a0897..c10c0de5 100644
--- a/tools/support/typst.tmLanguage.json
+++ b/tools/support/typst.tmLanguage.json
@@ -197,7 +197,7 @@
"comment": "Function arguments",
"begin": "(?<=#[[:alpha:]_][[:alnum:]_-]*)\\(",
"end": "\\)",
- "captures": { "3": { "name": "punctuation.definition.group.typst" } },
+ "captures": { "0": { "name": "punctuation.definition.group.typst" } },
"patterns": [{ "include": "#arguments" }]
},
{
@@ -211,13 +211,6 @@
"patterns": [
{ "include": "#common" },
{
- "name": "meta.group.typst",
- "begin": "\\(",
- "end": "\\)|(?=;)",
- "captures": { "0": { "name": "punctuation.definition.group.typst" } },
- "patterns": [{ "include": "#code" }]
- },
- {
"name": "punctuation.separator.colon.typst",
"match": ":"
},
@@ -269,6 +262,13 @@
{
"name": "variable.other.typst",
"match": "\\b[[:alpha:]_][[:alnum:]_-]*\\b"
+ },
+ {
+ "name": "meta.group.typst",
+ "begin": "\\(",
+ "end": "\\)|(?=;)",
+ "captures": { "0": { "name": "punctuation.definition.group.typst" } },
+ "patterns": [{ "include": "#code" }]
}
]
},