summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-05-14 12:25:19 +0200
committerLaurenz <laurmaedje@gmail.com>2022-05-14 12:25:19 +0200
commita3262af014ec7b451894ab0a0f7de8d53f3074e6 (patch)
tree75641ca4ddb3673e4b8b51a20cf86759dee7eb94 /tools
parent1df621868fda1aae193405057f69c3187debbae2 (diff)
Fix block comment highlighting in TextMate grammar
Diffstat (limited to 'tools')
-rw-r--r--tools/support/typst.tmLanguage.json11
1 files changed, 8 insertions, 3 deletions
diff --git a/tools/support/typst.tmLanguage.json b/tools/support/typst.tmLanguage.json
index 0475af43..b543b63d 100644
--- a/tools/support/typst.tmLanguage.json
+++ b/tools/support/typst.tmLanguage.json
@@ -4,15 +4,20 @@
{ "include": "#markup" }
],
"repository": {
- "common": {
+ "blockcomment": {
"patterns": [
{
"name": "comment.block.typst",
"begin": "/\\*",
"end": "\\*/",
"captures": { "0": { "name": "punctuation.definition.comment.typst" } },
- "patterns": [{ "include": "$self" }]
- },
+ "patterns": [{ "include": "#blockcomment" }]
+ }
+ ]
+ },
+ "common": {
+ "patterns": [
+ { "include": "#blockcomment" },
{
"name": "meta.block.code.typst",
"begin": "{",