fix: Restrict continue comment to whitespace separated slashes (#321230)

This commit is contained in:
RedCMD authored and GitHub committed 2026-06-14 05:11:51 +00:00
1 parent 1e5affb7fc
commit 9b43a71f03
13 files changed
+34 -81

No files matched your search

@@ -242,8 +242,8 @@
},
// Add // when pressing enter from inside line comment
{
"beforeText": "(?<!\\\\|\\w:)\/\/\\s*\\S",
"afterText": "^(?!\\s*$).+",
"beforeText": "^\\s*//|\\s//\\s",
"afterText": "^(?!\\s*$)",
"action": {
"indent": "none",
"appendText": "// "