about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-03-12 12:46:17 +0000
committerbors <bors@rust-lang.org>2024-03-12 12:46:17 +0000
commit9bc1eb49b533898e24fd62b564fbf41381fd5bf2 (patch)
tree64a46c917d67fe54c33a97945823e3ce9dfe7dd5
parentd3e6fea31597bf3e08f5ac02fe2cfa3baf139022 (diff)
parentcb6c26ba82982f10e2fa4f76bcf0c549ca7f9762 (diff)
downloadrust-9bc1eb49b533898e24fd62b564fbf41381fd5bf2.tar.gz
rust-9bc1eb49b533898e24fd62b564fbf41381fd5bf2.zip
Auto merge of #16820 - lnicola:no-string-comment-autoclose, r=lnicola
fix: Don't auto-close block comments in strings

Fixes #16815
-rw-r--r--editors/code/language-configuration.json2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/code/language-configuration.json b/editors/code/language-configuration.json
index 1c348b63f1a..bdae0e6ba9b 100644
--- a/editors/code/language-configuration.json
+++ b/editors/code/language-configuration.json
@@ -18,7 +18,7 @@
         { "open": "[", "close": "]" },
         { "open": "(", "close": ")" },
         { "open": "\"", "close": "\"", "notIn": ["string"] },
-        { "open": "/*", "close": " */" },
+        { "open": "/*", "close": " */", "notIn": ["string"] },
         { "open": "`", "close": "`", "notIn": ["string"] }
     ],
     "autoCloseBefore": ";:.,=}])> \n\t",