From fc2b063fa287ef19ea51bf605ea010eca23fc1b1 Mon Sep 17 00:00:00 2001 From: Yu Zhang <583181285@qq.com> Date: Thu, 8 Jun 2017 05:53:54 +0800 Subject: [PATCH] Default Markdown language configuration (#28172) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🔧 renew Markdown lang config * 🎨 format --- .../markdown/language-configuration.json | 60 +++++++++++-------- 1 file changed, 35 insertions(+), 25 deletions(-) diff --git a/extensions/markdown/language-configuration.json b/extensions/markdown/language-configuration.json index fd6cd6a1469..05e33bbdc90 100644 --- a/extensions/markdown/language-configuration.json +++ b/extensions/markdown/language-configuration.json @@ -8,31 +8,41 @@ }, // symbols used as brackets "brackets": [ - [ - "{", - "}" - ], - [ - "[", - "]" - ], - [ - "(", - ")" - ] + ["{", "}"], + ["[", "]"], + ["(", ")"] ], "autoClosingPairs": [ - [ - "{", - "}" - ], - [ - "[", - "]" - ], - [ - "(", - ")" - ] + { + "open": "{", + "close": "}" + }, + { + "open": "[", + "close": "]" + }, + { + "open": "(", + "close": ")" + }, + { + "open": "<", + "close": ">", + "notIn": [ + "string" + ] + }, + { + "open": "`", + "close": "`", + "notIn": [ + "string" + ] + } + ], + "surroundingPairs": [ + ["(", ")"], + ["[", "]"], + ["`", "`"] ] -} +} \ No newline at end of file