From 77dd5f36d540de16a77dc02194cf1f712d1650c5 Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Tue, 13 Sep 2022 00:37:21 -0700 Subject: [PATCH] Better paired operators for R (#155882) Co-authored-by: Martin Aeschlimann --- extensions/r/language-configuration.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/extensions/r/language-configuration.json b/extensions/r/language-configuration.json index dd691e2a6d4..3a2e2f34f5f 100644 --- a/extensions/r/language-configuration.json +++ b/extensions/r/language-configuration.json @@ -11,13 +11,16 @@ ["{", "}"], ["[", "]"], ["(", ")"], + ["`", "`"], { "open": "\"", "close": "\"", "notIn": ["string"] }, - { "open": "'", "close": "'", "notIn": ["string"] } + { "open": "'", "close": "'", "notIn": ["string", "comment"] }, + { "open": "%", "close": "%", "notIn": ["string", "comment"] } ], "surroundingPairs": [ ["{", "}"], ["[", "]"], ["(", ")"], + ["`", "`"], ["\"", "\""], ["'", "'"] ]