mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
onEnter Indentation Rules: Ignoring double slashes inside of strings (#235712)
ignoring double slashes inside of strings
This commit is contained in:
committed by
GitHub
parent
7ccf9661c7
commit
21c52a4a3a
@@ -118,7 +118,7 @@
|
||||
// Add // when pressing enter from inside line comment
|
||||
{
|
||||
"beforeText": {
|
||||
"pattern": "\/\/.*"
|
||||
"pattern": "^(?:\"[^\"]*\"|'[^']*'|[^\"']*)*\/\/"
|
||||
},
|
||||
"afterText": {
|
||||
"pattern": "^(?!\\s*$).+"
|
||||
|
||||
Reference in New Issue
Block a user