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

This commit is contained in:
RedCMD
2026-06-14 17:11:51 +12:00
committed by GitHub
parent 1e5affb7fc
commit 9b43a71f03
13 changed files with 34 additions and 81 deletions
@@ -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": "// "