diff --git a/tools/support/typst.tmLanguage.json b/tools/support/typst.tmLanguage.json index cdf92649a..c45b89882 100644 --- a/tools/support/typst.tmLanguage.json +++ b/tools/support/typst.tmLanguage.json @@ -119,7 +119,7 @@ }, { "name": "keyword.other.typst", - "match": "(#)(in|using|as)\\b", + "match": "(#)(as|in|with|from|using)\\b", "captures": { "1": { "name": "punctuation.definition.keyword.typst" } } }, { @@ -171,12 +171,12 @@ { "comment": "Function name", "name": "entity.name.function.typst", - "match": "((#)[[:alpha:]_][[:alnum:]_-]*!?)(?=\\[|\\()", + "match": "((#)[[:alpha:]_][[:alnum:]_-]*)(?=\\[|\\()", "captures": { "2": { "name": "punctuation.definition.function.typst" } } }, { "comment": "Function arguments", - "begin": "(?<=#[[:alpha:]_][[:alnum:]_-]*!?)\\(", + "begin": "(?<=#[[:alpha:]_][[:alnum:]_-]*)\\(", "end": "\\)", "captures": { "0": { "name": "punctuation.definition.group.typst" } }, "patterns": [{ "include": "#arguments" }] @@ -213,7 +213,7 @@ }, { "name": "keyword.operator.arithmetic.typst", - "match": "\\+|\\*!?|/|(?