Performance regression: revert "Ignoring double slashes inside of strings" (#235742)

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

This reverts commit 21c52a4a3a.
pull/235746/head
Aiday Marlen Kyzy 2024-12-10 16:49:07 +01:00 committed by GitHub
parent 7d69a1c962
commit c0d25ffb56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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*$).+"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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