onEnter Indentation Rules: Ignoring double slashes inside of strings (#235712)

ignoring double slashes inside of strings
This commit is contained in:
Aiday Marlen Kyzy
2024-12-10 11:02:51 +01:00
committed by GitHub
parent 7ccf9661c7
commit 21c52a4a3a
13 changed files with 13 additions and 13 deletions

View File

@@ -118,7 +118,7 @@
// Add // when pressing enter from inside line comment
{
"beforeText": {
"pattern": "\/\/.*"
"pattern": "^(?:\"[^\"]*\"|'[^']*'|[^\"']*)*\/\/"
},
"afterText": {
"pattern": "^(?!\\s*$).+"