From af53fcfd8620fee6beb45c776ecf26cd3137e808 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ondr=CC=8Cej=20S=CC=8Cebek?= Date: Mon, 3 Jun 2024 19:33:36 +0200 Subject: [PATCH] Refactor comments --- editors/vscode/syntaxes/swarm.tmLanguage.json | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/editors/vscode/syntaxes/swarm.tmLanguage.json b/editors/vscode/syntaxes/swarm.tmLanguage.json index 2b365bcf3..34dee82f4 100644 --- a/editors/vscode/syntaxes/swarm.tmLanguage.json +++ b/editors/vscode/syntaxes/swarm.tmLanguage.json @@ -66,9 +66,13 @@ }, "comments": { "patterns": [ - { "name": "comment.line.double-slash", "begin": "//", "end": "$\\n?" }, - { "name": "comment.block", "begin": "/[*]", "end": "[*](/)" } - ] + { "include": "#line" }, + { "include": "#block" } + ], + "repository": { + "line": { "name": "comment.line.double-slash", "begin": "//", "end": "$\\n?" }, + "block": { "name": "comment.block", "begin": "/[*]", "end": "[*](/)" } + } }, "strings": { "patterns": [{ "name": "string.quoted.double", "begin": "\"", "end": "\"" }] }, "constants": { "patterns": [{ "name": "constant.numeric", "match": "([0-9]+|0b[01]+|0o[0-8]+|0x\\x+)" }] },