From 3cbef4f932a7160aa487b650b405be6162ce93aa Mon Sep 17 00:00:00 2001 From: Torben Ewert Date: Sat, 13 Jan 2024 14:47:09 +0100 Subject: [PATCH] update syntax for string template expressions --- language-configuration.json | 9 ++++----- syntaxes/pinc.tmLanguage.json | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/language-configuration.json b/language-configuration.json index da57f72..5dec4d8 100644 --- a/language-configuration.json +++ b/language-configuration.json @@ -1,19 +1,17 @@ { "comments": { "lineComment": "//", - "blockComment": [ - ["/*", "*/"], - ] + "blockComment": [["/*", "*/"]] }, "brackets": [ - ["{|", "|}"], + ["$(", ")"], ["{", "}"], ["[", "]"], ["(", ")"] ], "autoClosingPairs": [ ["/*", "*/"], - ["{|", "|}"], + ["$(", ")"], ["{", "}"], ["[", "]"], ["(", ")"], @@ -21,6 +19,7 @@ ], // symbols that can be used to surround a selection "surroundingPairs": [ + ["$(", ")"], ["{", "}"], ["[", "]"], ["(", ")"], diff --git a/syntaxes/pinc.tmLanguage.json b/syntaxes/pinc.tmLanguage.json index 8c2a0b8..0a2995f 100644 --- a/syntaxes/pinc.tmLanguage.json +++ b/syntaxes/pinc.tmLanguage.json @@ -159,13 +159,13 @@ }, { "name": "meta.template.expression", - "begin": "\\{\\|", + "begin": "\\$\\(", "beginCaptures": { "0": { "name": "punctuation.section.interpolation.begin" } }, - "end": "\\|\\}", + "end": "\\)", "endCaptures": { "0": { "name": "punctuation.section.interpolation.end" -- 2.51.2