Skip to content

Commit

Permalink
Performance regression: revert "Ignoring double slashes inside of str…
Browse files Browse the repository at this point in the history
…ings" (#235742)

Revert "onEnter Indentation Rules: Ignoring double slashes inside of strings …"

This reverts commit 21c52a4.
  • Loading branch information
aiday-mar authored Dec 10, 2024
1 parent 7d69a1c commit c0d25ff
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion extensions/cpp/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
// Add // when pressing enter from inside line comment
{
"beforeText": {
"pattern": "^(?:\"[^\"]*\"|'[^']*'|[^\"']*)*\/\/"
"pattern": "\/\/.*"
},
"afterText": {
"pattern": "^(?!\\s*$).+"
Expand Down
2 changes: 1 addition & 1 deletion extensions/csharp/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
// Add // when pressing enter from inside line comment
{
"beforeText": {
"pattern": "^(?:\"[^\"]*\"|'[^']*'|[^\"']*)*\/\/"
"pattern": "\/\/.*"
},
"afterText": {
"pattern": "^(?!\\s*$).+"
Expand Down
2 changes: 1 addition & 1 deletion extensions/go/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
// Add // when pressing enter from inside line comment
{
"beforeText": {
"pattern": "^(?:\"[^\"]*\"|'[^']*'|`[^`]*`|[^\"'`]*)*\/\/"
"pattern": "\/\/.*"
},
"afterText": {
"pattern": "^(?!\\s*$).+"
Expand Down
2 changes: 1 addition & 1 deletion extensions/groovy/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
// Add // when pressing enter from inside line comment
{
"beforeText": {
"pattern": "^(?:\"[^\"]*\"|'[^']*'|[^\"']*)*\/\/"
"pattern": "\/\/.*"
},
"afterText": {
"pattern": "^(?!\\s*$).+"
Expand Down
2 changes: 1 addition & 1 deletion extensions/java/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
// Add // when pressing enter from inside line comment
{
"beforeText": {
"pattern": "^(?:\"[^\"]*\"|'[^']*'|[^\"']*)*\/\/"
"pattern": "\/\/.*"
},
"afterText": {
"pattern": "^(?!\\s*$).+"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@
// Add // when pressing enter from inside line comment
{
"beforeText": {
"pattern": "^(?:\"[^\"]*\"|'[^']*'|`[^`]*`|[^\"'`]*)*\/\/"
"pattern": "\/\/.*"
},
"afterText": {
"pattern": "^(?!\\s*$).+"
Expand Down
2 changes: 1 addition & 1 deletion extensions/json/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
// Add // when pressing enter from inside line comment
{
"beforeText": {
"pattern": "^(?:\"[^\"]*\"|[^\"]*)*\/\/"
"pattern": "\/\/.*"
},
"afterText": {
"pattern": "^(?!\\s*$).+"
Expand Down
2 changes: 1 addition & 1 deletion extensions/less/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
// Add // when pressing enter from inside line comment
{
"beforeText": {
"pattern": "^(?:\"[^\"]*\"|'[^']*'|[^\"']*)*\/\/"
"pattern": "\/\/.*"
},
"afterText": {
"pattern": "^(?!\\s*$).+"
Expand Down
2 changes: 1 addition & 1 deletion extensions/objective-c/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
// Add // when pressing enter from inside line comment
{
"beforeText": {
"pattern": "^(?:\"[^\"]*\"|'[^']*'|[^\"']*)*\/\/"
"pattern": "\/\/.*"
},
"afterText": {
"pattern": "^(?!\\s*$).+"
Expand Down
2 changes: 1 addition & 1 deletion extensions/php/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
// Add // when pressing enter from inside line comment
{
"beforeText": {
"pattern": "^(?:\"[^\"]*\"|'[^']*'|`[^`]*`|[^\"'`]*)*\/\/"
"pattern": "\/\/.*"
},
"afterText": {
"pattern": "^(?!\\s*$).+"
Expand Down
2 changes: 1 addition & 1 deletion extensions/rust/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
// Add // when pressing enter from inside line comment
{
"beforeText": {
"pattern": "^(?:\"[^\"]*\"|'[^']*'|[^\"']*)*\/\/"
"pattern": "\/\/.*"
},
"afterText": {
"pattern": "^(?!\\s*$).+"
Expand Down
2 changes: 1 addition & 1 deletion extensions/swift/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
// Add // when pressing enter from inside line comment
{
"beforeText": {
"pattern": "^(?:\"[^\"]*\"|'[^']*'|[^\"']*)*\/\/"
"pattern": "\/\/.*"
},
"afterText": {
"pattern": "^(?!\\s*$).+"
Expand Down
2 changes: 1 addition & 1 deletion extensions/typescript-basics/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@
// Add // when pressing enter from inside line comment
{
"beforeText": {
"pattern": "^(?:\"[^\"]*\"|'[^']*'|`[^`]*`|[^\"'`]*)*\/\/"
"pattern": "\/\/.*"
},
"afterText": {
"pattern": "^(?!\\s*$).+"
Expand Down

0 comments on commit c0d25ff

Please sign in to comment.