From c0d25ffb56b4b1fe4a4f33ab764f0fff1970d66d Mon Sep 17 00:00:00 2001 From: Aiday Marlen Kyzy Date: Tue, 10 Dec 2024 16:49:07 +0100 Subject: [PATCH] Performance regression: revert "Ignoring double slashes inside of strings" (#235742) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Revert "onEnter Indentation Rules: Ignoring double slashes inside of strings …" This reverts commit 21c52a4a3ae29fac345c863b39c5fd44f4005862. --- extensions/cpp/language-configuration.json | 2 +- extensions/csharp/language-configuration.json | 2 +- extensions/go/language-configuration.json | 2 +- extensions/groovy/language-configuration.json | 2 +- extensions/java/language-configuration.json | 2 +- extensions/javascript/javascript-language-configuration.json | 2 +- extensions/json/language-configuration.json | 2 +- extensions/less/language-configuration.json | 2 +- extensions/objective-c/language-configuration.json | 2 +- extensions/php/language-configuration.json | 2 +- extensions/rust/language-configuration.json | 2 +- extensions/swift/language-configuration.json | 2 +- extensions/typescript-basics/language-configuration.json | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/extensions/cpp/language-configuration.json b/extensions/cpp/language-configuration.json index 4324b1ffc2c..cb1fb733b99 100644 --- a/extensions/cpp/language-configuration.json +++ b/extensions/cpp/language-configuration.json @@ -118,7 +118,7 @@ // Add // when pressing enter from inside line comment { "beforeText": { - "pattern": "^(?:\"[^\"]*\"|'[^']*'|[^\"']*)*\/\/" + "pattern": "\/\/.*" }, "afterText": { "pattern": "^(?!\\s*$).+" diff --git a/extensions/csharp/language-configuration.json b/extensions/csharp/language-configuration.json index c54e020bf8c..60814ae02f4 100644 --- a/extensions/csharp/language-configuration.json +++ b/extensions/csharp/language-configuration.json @@ -86,7 +86,7 @@ // Add // when pressing enter from inside line comment { "beforeText": { - "pattern": "^(?:\"[^\"]*\"|'[^']*'|[^\"']*)*\/\/" + "pattern": "\/\/.*" }, "afterText": { "pattern": "^(?!\\s*$).+" diff --git a/extensions/go/language-configuration.json b/extensions/go/language-configuration.json index 2170510547b..9238bf3529b 100644 --- a/extensions/go/language-configuration.json +++ b/extensions/go/language-configuration.json @@ -96,7 +96,7 @@ // Add // when pressing enter from inside line comment { "beforeText": { - "pattern": "^(?:\"[^\"]*\"|'[^']*'|`[^`]*`|[^\"'`]*)*\/\/" + "pattern": "\/\/.*" }, "afterText": { "pattern": "^(?!\\s*$).+" diff --git a/extensions/groovy/language-configuration.json b/extensions/groovy/language-configuration.json index 08c7a1c6395..39e5fd4092c 100644 --- a/extensions/groovy/language-configuration.json +++ b/extensions/groovy/language-configuration.json @@ -74,7 +74,7 @@ // Add // when pressing enter from inside line comment { "beforeText": { - "pattern": "^(?:\"[^\"]*\"|'[^']*'|[^\"']*)*\/\/" + "pattern": "\/\/.*" }, "afterText": { "pattern": "^(?!\\s*$).+" diff --git a/extensions/java/language-configuration.json b/extensions/java/language-configuration.json index 813f406fcb0..6ba09bbd15c 100644 --- a/extensions/java/language-configuration.json +++ b/extensions/java/language-configuration.json @@ -158,7 +158,7 @@ // Add // when pressing enter from inside line comment { "beforeText": { - "pattern": "^(?:\"[^\"]*\"|'[^']*'|[^\"']*)*\/\/" + "pattern": "\/\/.*" }, "afterText": { "pattern": "^(?!\\s*$).+" diff --git a/extensions/javascript/javascript-language-configuration.json b/extensions/javascript/javascript-language-configuration.json index b1006f3d05f..46ee043c52c 100644 --- a/extensions/javascript/javascript-language-configuration.json +++ b/extensions/javascript/javascript-language-configuration.json @@ -231,7 +231,7 @@ // Add // when pressing enter from inside line comment { "beforeText": { - "pattern": "^(?:\"[^\"]*\"|'[^']*'|`[^`]*`|[^\"'`]*)*\/\/" + "pattern": "\/\/.*" }, "afterText": { "pattern": "^(?!\\s*$).+" diff --git a/extensions/json/language-configuration.json b/extensions/json/language-configuration.json index 215f9d6c854..d47efe2587e 100644 --- a/extensions/json/language-configuration.json +++ b/extensions/json/language-configuration.json @@ -70,7 +70,7 @@ // Add // when pressing enter from inside line comment { "beforeText": { - "pattern": "^(?:\"[^\"]*\"|[^\"]*)*\/\/" + "pattern": "\/\/.*" }, "afterText": { "pattern": "^(?!\\s*$).+" diff --git a/extensions/less/language-configuration.json b/extensions/less/language-configuration.json index ff92640a6a3..71e155ddfcc 100644 --- a/extensions/less/language-configuration.json +++ b/extensions/less/language-configuration.json @@ -99,7 +99,7 @@ // Add // when pressing enter from inside line comment { "beforeText": { - "pattern": "^(?:\"[^\"]*\"|'[^']*'|[^\"']*)*\/\/" + "pattern": "\/\/.*" }, "afterText": { "pattern": "^(?!\\s*$).+" diff --git a/extensions/objective-c/language-configuration.json b/extensions/objective-c/language-configuration.json index 08c7a1c6395..39e5fd4092c 100644 --- a/extensions/objective-c/language-configuration.json +++ b/extensions/objective-c/language-configuration.json @@ -74,7 +74,7 @@ // Add // when pressing enter from inside line comment { "beforeText": { - "pattern": "^(?:\"[^\"]*\"|'[^']*'|[^\"']*)*\/\/" + "pattern": "\/\/.*" }, "afterText": { "pattern": "^(?!\\s*$).+" diff --git a/extensions/php/language-configuration.json b/extensions/php/language-configuration.json index 8880f278e42..d696ffa2950 100644 --- a/extensions/php/language-configuration.json +++ b/extensions/php/language-configuration.json @@ -157,7 +157,7 @@ // Add // when pressing enter from inside line comment { "beforeText": { - "pattern": "^(?:\"[^\"]*\"|'[^']*'|`[^`]*`|[^\"'`]*)*\/\/" + "pattern": "\/\/.*" }, "afterText": { "pattern": "^(?!\\s*$).+" diff --git a/extensions/rust/language-configuration.json b/extensions/rust/language-configuration.json index 846c799f877..490f4409c65 100644 --- a/extensions/rust/language-configuration.json +++ b/extensions/rust/language-configuration.json @@ -77,7 +77,7 @@ // Add // when pressing enter from inside line comment { "beforeText": { - "pattern": "^(?:\"[^\"]*\"|'[^']*'|[^\"']*)*\/\/" + "pattern": "\/\/.*" }, "afterText": { "pattern": "^(?!\\s*$).+" diff --git a/extensions/swift/language-configuration.json b/extensions/swift/language-configuration.json index b3f8ae7de50..e1ceb1f6bc6 100644 --- a/extensions/swift/language-configuration.json +++ b/extensions/swift/language-configuration.json @@ -85,7 +85,7 @@ // Add // when pressing enter from inside line comment { "beforeText": { - "pattern": "^(?:\"[^\"]*\"|'[^']*'|[^\"']*)*\/\/" + "pattern": "\/\/.*" }, "afterText": { "pattern": "^(?!\\s*$).+" diff --git a/extensions/typescript-basics/language-configuration.json b/extensions/typescript-basics/language-configuration.json index b59f5ac79f0..876c11e8143 100644 --- a/extensions/typescript-basics/language-configuration.json +++ b/extensions/typescript-basics/language-configuration.json @@ -249,7 +249,7 @@ // Add // when pressing enter from inside line comment { "beforeText": { - "pattern": "^(?:\"[^\"]*\"|'[^']*'|`[^`]*`|[^\"'`]*)*\/\/" + "pattern": "\/\/.*" }, "afterText": { "pattern": "^(?!\\s*$).+"