vscode-ebnf

EBNF for Visual Studio Code
Mirror of https://github.com/Jamozed/vscode-ebnf
git clone http://git.omkov.net/vscode-ebnf
Log | Tree | Refs | README | LICENCE | Download

AuthorJamozed <[email protected]>
Date2021-07-06 05:23:12
Commit57ce57745083873aa7f30066663651244725cc47
Parent49d702e82e5218a4f81e585ac260e0d1afec90d7

Disable auto closing pairs inside comments

Diffstat

M language-configuration.json | 8 +++++---

1 files changed, 5 insertions, 3 deletions

diff --git a/language-configuration.json b/language-configuration.json
index f71fa2a..517e902 100644
--- a/language-configuration.json
+++ b/language-configuration.json
@@ -8,11 +8,12 @@
 		[ "(", ")" ]
 	],
 	"autoClosingPairs": [
-		[ "[", "]" ],
-		[ "{", "}" ],
-		[ "(", ")" ],
-		[ "'", "'" ],
-		[ "\"", "\"" ]
+		{ "open": "[", "close": "]", "notIn": [ "comment" ] },
+		{ "open": "{", "close": "}", "notIn": [ "comment" ] },
+		{ "open": "(", "close": ")", "notIn": [ "comment" ] },
+		{ "open": "'", "close": "'", "notIn": [ "comment" ] },
+		{ "open": "\"", "close": "\"", "notIn": [ "comment" ] },
+		{ "open": "(*", "close": "*)", "notIn": [ "comment" ] }
 	],
 	"surroundingPairs": [
 		[ "[", "]" ],