From 9ee425cebd4c93fac715a4db46c5dcae116462de Mon Sep 17 00:00:00 2001 From: Martin Aeschlimann Date: Fri, 2 Mar 2018 09:45:26 +0100 Subject: [PATCH] Auto-closing backticks in Python. Fixes #41615 --- extensions/bat/language-configuration.json | 3 +-- extensions/python/language-configuration.json | 6 ++++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/extensions/bat/language-configuration.json b/extensions/bat/language-configuration.json index 2064cd941ca..2fb5445a34a 100644 --- a/extensions/bat/language-configuration.json +++ b/extensions/bat/language-configuration.json @@ -11,8 +11,7 @@ ["{", "}"], ["[", "]"], ["(", ")"], - ["\"", "\""], - ["`", "`"] + ["\"", "\""] ], "surroundingPairs": [ ["{", "}"], diff --git a/extensions/python/language-configuration.json b/extensions/python/language-configuration.json index da6ac4711be..c2c4aabc862 100644 --- a/extensions/python/language-configuration.json +++ b/extensions/python/language-configuration.json @@ -29,14 +29,16 @@ { "open": "f'", "close": "'", "notIn": ["string", "comment"] }, { "open": "F'", "close": "'", "notIn": ["string", "comment"] }, { "open": "b'", "close": "'", "notIn": ["string", "comment"] }, - { "open": "B'", "close": "'", "notIn": ["string", "comment"] } + { "open": "B'", "close": "'", "notIn": ["string", "comment"] }, + { "open": "`", "close": "`", "notIn": ["string"] } ], "surroundingPairs": [ ["{", "}"], ["[", "]"], ["(", ")"], ["\"", "\""], - ["'", "'"] + ["'", "'"], + ["`", "`"] ], "folding": { "offSide": true,