From cc5c5f01d0128a0889ed62e320381bc88e6a5815 Mon Sep 17 00:00:00 2001 From: Cyrus Najmabadi Date: Wed, 4 Dec 2024 10:26:16 -0800 Subject: [PATCH 01/15] Update regex messages --- .../Json/CSharpJsonParserTests.cs | 2 +- .../CSharpRegexParserTests_BasicTests.cs | 138 +++++++++--------- ...arpRegexParserTests_DotnetNegativeTests.cs | 50 +++---- .../CSharpRegexParserTests_RealWorld.cs | 2 +- ...is.CSharp.EditorFeatures2.UnitTests.csproj | 19 ++- .../KeywordRecommenderTests.cs | 6 +- .../RegularExpressions/RegexLexer.cs | 2 +- .../RegularExpressions/RegexParser.cs | 6 +- .../Core/Portable/FeaturesResources.resx | 18 +-- .../Portable/xlf/FeaturesResources.cs.xlf | 40 ++--- .../Portable/xlf/FeaturesResources.de.xlf | 40 ++--- .../Portable/xlf/FeaturesResources.es.xlf | 40 ++--- .../Portable/xlf/FeaturesResources.fr.xlf | 40 ++--- .../Portable/xlf/FeaturesResources.it.xlf | 40 ++--- .../Portable/xlf/FeaturesResources.ja.xlf | 40 ++--- .../Portable/xlf/FeaturesResources.ko.xlf | 40 ++--- .../Portable/xlf/FeaturesResources.pl.xlf | 40 ++--- .../Portable/xlf/FeaturesResources.pt-BR.xlf | 40 ++--- .../Portable/xlf/FeaturesResources.ru.xlf | 40 ++--- .../Portable/xlf/FeaturesResources.tr.xlf | 40 ++--- .../xlf/FeaturesResources.zh-Hans.xlf | 40 ++--- .../xlf/FeaturesResources.zh-Hant.xlf | 40 ++--- 22 files changed, 386 insertions(+), 377 deletions(-) diff --git a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/Json/CSharpJsonParserTests.cs b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/Json/CSharpJsonParserTests.cs index 2fbc9e7ad2dcd..1d0f3c6a11f16 100644 --- a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/Json/CSharpJsonParserTests.cs +++ b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/Json/CSharpJsonParserTests.cs @@ -92,7 +92,7 @@ private static string RemoveMessagesInNonSupportedLanguage(string value) var diagnosticsElement = XElement.Parse(value); foreach (var diagnosticElement in diagnosticsElement.Elements("Diagnostic")) - diagnosticElement.Attribute("Message").Remove(); + diagnosticElement.Attribute("Message")!.Remove(); return diagnosticsElement.ToString(); } diff --git a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs index 52e14b73efff3..6484a28a51caf 100644 --- a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs +++ b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs @@ -506,7 +506,7 @@ public void TestOpenQuestion1() - + @@ -539,7 +539,7 @@ public void TestOpenQuestion2() - + @@ -575,7 +575,7 @@ public void TestOpenQuestion3() - + @@ -612,7 +612,7 @@ public void TestOpenQuestion4() - + @@ -1906,7 +1906,7 @@ public void TestLargeExactRangeNumericQuantifier2() - + @@ -1965,7 +1965,7 @@ public void TestLargeOpenRangeNumericQuantifier2() - + @@ -2026,7 +2026,7 @@ public void TestLargeClosedRangeNumericQuantifier2() - + @@ -2479,7 +2479,7 @@ public void TestDanglingNumericQuantifier1() - + @@ -2507,7 +2507,7 @@ public void TestDanglingNumericQuantifier2() - + @@ -2594,7 +2594,7 @@ public void TestAsteriskQuantifierAtStart() - + @@ -2625,7 +2625,7 @@ public void TestAsteriskQuantifierAtStartOfGroup() - + @@ -2682,7 +2682,7 @@ public void TestPlusQuantifierAtStart() - + @@ -2713,7 +2713,7 @@ public void TestPlusQuantifierAtStartOfGroup() - + @@ -2770,7 +2770,7 @@ public void TestQuestionQuantifierAtStart() - + @@ -2801,7 +2801,7 @@ public void TestQuestionQuantifierAtStartOfGroup() - + @@ -2863,7 +2863,7 @@ public void TestNumericQuantifierAtStart() - + @@ -2897,7 +2897,7 @@ public void TestNumericQuantifierAtStartOfGroup() - + @@ -4519,7 +4519,7 @@ public void TestOctalEscape9() - + @@ -4571,7 +4571,7 @@ public void TestOctalEscape11() - + @@ -8795,7 +8795,7 @@ public void TestBalancingGroupingUndefinedReference1() - + @@ -9168,7 +9168,7 @@ public void TestBalancingGroupingAutoNumbers() - + @@ -9250,7 +9250,7 @@ public void TestBalancingGroupingAutoNumbers1() - + @@ -9333,7 +9333,7 @@ public void TestBalancingGroupingAutoNumbers2() - + @@ -9420,7 +9420,7 @@ public void TestBalancingGroupingAutoNumbers3() - + @@ -9500,7 +9500,7 @@ public void TestBalancingGroupingAutoNumbers4() - + @@ -9582,10 +9582,10 @@ public void TestBalancingGroupingAutoNumbers5_1() - - + + - + @@ -9667,7 +9667,7 @@ public void TestBalancingGroupingAutoNumbers5() - + @@ -9750,7 +9750,7 @@ public void TestBalancingGroupingAutoNumbers6() - + @@ -9837,10 +9837,10 @@ public void TestBalancingGroupingAutoNumbers7_1() - - + + - + @@ -9927,7 +9927,7 @@ public void TestBalancingGroupingAutoNumbers7() - + @@ -10285,7 +10285,7 @@ public void TestConditionalCapture2() - + @@ -10585,7 +10585,7 @@ public void TestConditionalCapture10() - + @@ -11163,7 +11163,7 @@ public void TestCommentInConditionalGrouping1() - + @@ -11207,7 +11207,7 @@ public void TestCommentInConditionalGrouping2() - + @@ -11251,7 +11251,7 @@ public void TestCommentInConditionalGrouping3() - + @@ -11535,7 +11535,7 @@ public void TestBackreference1() - + @@ -11564,7 +11564,7 @@ public void TestBackreference2() - + @@ -16034,7 +16034,7 @@ public void TestCaptures2() - + @@ -16101,7 +16101,7 @@ public void TestCaptures4() - + @@ -16132,7 +16132,7 @@ public void TestCaptures5() - + @@ -16168,7 +16168,7 @@ public void TestCaptures6() - + @@ -16259,7 +16259,7 @@ public void TestCaptures8() - + @@ -16306,8 +16306,8 @@ public void TestCaptures9() - - + + @@ -16353,8 +16353,8 @@ public void TestCaptures10() - - + + @@ -16400,8 +16400,8 @@ public void TestCaptures11() - - + + @@ -16447,8 +16447,8 @@ public void TestCaptures12() - - + + @@ -16629,8 +16629,8 @@ public void TestCaptures16() - - + + @@ -16676,7 +16676,7 @@ public void TestCaptures17() - + @@ -16819,8 +16819,8 @@ public void TestCaptures20() - - + + @@ -16917,8 +16917,8 @@ public void TestCaptures22() - - + + @@ -17013,8 +17013,8 @@ public void TestCaptures24() - - + + @@ -17109,8 +17109,8 @@ public void TestCaptures26() - - + + @@ -17264,8 +17264,8 @@ public void TestCaptures29() - - + + @@ -17317,8 +17317,8 @@ public void TestCaptures30() - - + + diff --git a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_DotnetNegativeTests.cs b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_DotnetNegativeTests.cs index b70ccc59d18dc..1666c21d87bef 100644 --- a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_DotnetNegativeTests.cs +++ b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_DotnetNegativeTests.cs @@ -168,7 +168,7 @@ public void NegativeTest4() - + @@ -261,7 +261,7 @@ public void NegativeTest7() - + @@ -927,7 +927,7 @@ public void NegativeTest29() - + @@ -1163,7 +1163,7 @@ public void NegativeTest36() - + @@ -1204,7 +1204,7 @@ public void NegativeTest37() - + @@ -1250,7 +1250,7 @@ public void NegativeTest38() - + @@ -1300,7 +1300,7 @@ public void NegativeTest39() - + @@ -1354,7 +1354,7 @@ public void NegativeTest40() - + @@ -1422,7 +1422,7 @@ public void NegativeTest42() - + @@ -1736,7 +1736,7 @@ public void NegativeTest52() - + @@ -1775,7 +1775,7 @@ public void NegativeTest53() - + @@ -2105,7 +2105,7 @@ public void NegativeTest62() - + @@ -2143,7 +2143,7 @@ public void NegativeTest63() - + @@ -2281,7 +2281,7 @@ public void NegativeTest66() - + @@ -2322,7 +2322,7 @@ public void NegativeTest67() - + @@ -2358,7 +2358,7 @@ public void NegativeTest68() - + @@ -2544,7 +2544,7 @@ public void NegativeTest73() - + @@ -2689,7 +2689,7 @@ public void NegativeTest76() - + @@ -2938,7 +2938,7 @@ public void NegativeTest80() - + @@ -4292,7 +4292,7 @@ public void NegativeTest106() - + @@ -5094,7 +5094,7 @@ public void NegativeTest125() - + @@ -5271,7 +5271,7 @@ public void NegativeTest128() - + @@ -5324,7 +5324,7 @@ public void NegativeTest129() - + @@ -5377,7 +5377,7 @@ public void NegativeTest130() - + @@ -5721,7 +5721,7 @@ public void NegativeTest136() - + diff --git a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_RealWorld.cs b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_RealWorld.cs index 8273ba798f170..f113fa03d36e6 100644 --- a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_RealWorld.cs +++ b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_RealWorld.cs @@ -37,7 +37,7 @@ public void TestRealWorldCases(string pattern, int options) public static IEnumerable GetRealWorldCases() { using var stream = typeof(CSharpRegexParserTests).Assembly.GetManifestResourceStream("Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.EmbeddedLanguages.RegularExpressions.Regex_RealWorldPatterns.json"); - using var streamReader = new StreamReader(stream); + using var streamReader = new StreamReader(stream!); using var textReader = new JsonTextReader(streamReader); foreach (var obj in JArray.Load(textReader)) diff --git a/src/EditorFeatures/CSharpTest2/Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests.csproj b/src/EditorFeatures/CSharpTest2/Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests.csproj index 11ac577797e61..002a78bc58349 100644 --- a/src/EditorFeatures/CSharpTest2/Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests.csproj +++ b/src/EditorFeatures/CSharpTest2/Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests.csproj @@ -1,10 +1,10 @@  - + - net472 - true + $(NetRoslyn) + Library Microsoft.CodeAnalysis.Editor.CSharp.UnitTests @@ -18,27 +18,36 @@ + + - - + + + + + \ No newline at end of file diff --git a/src/EditorFeatures/CSharpTest2/Recommendations/KeywordRecommenderTests.cs b/src/EditorFeatures/CSharpTest2/Recommendations/KeywordRecommenderTests.cs index d82b772dd5c41..32ebedb7b43c4 100644 --- a/src/EditorFeatures/CSharpTest2/Recommendations/KeywordRecommenderTests.cs +++ b/src/EditorFeatures/CSharpTest2/Recommendations/KeywordRecommenderTests.cs @@ -27,9 +27,9 @@ static KeywordRecommenderTests() { var recommender = Activator.CreateInstance(recommenderType); var field = recommenderType.GetField(nameof(AbstractSyntacticSingleKeywordRecommender.KeywordKind), BindingFlags.Public | BindingFlags.Instance); - var kind = (SyntaxKind)field.GetValue(recommender); + var kind = (SyntaxKind)field!.GetValue(recommender)!; - s_recommenderMap.Add(kind, (AbstractSyntacticSingleKeywordRecommender)recommender); + s_recommenderMap.Add(kind, (AbstractSyntacticSingleKeywordRecommender)recommender!); } catch { @@ -44,7 +44,7 @@ protected KeywordRecommenderTests() var kindName = name[..^"RecommenderTests".Length]; // e.g. ForEachKeywordRecommenderTests -> ForEachKeyword var field = typeof(SyntaxKind).GetField(kindName); - var kind = (SyntaxKind)field.GetValue(null); + var kind = (SyntaxKind)field!.GetValue(null)!; KeywordText = SyntaxFacts.GetText(kind); s_recommenderMap.TryGetValue(kind, out var recommender); diff --git a/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexLexer.cs b/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexLexer.cs index 397fa4abc0efc..8a6b654273e0d 100644 --- a/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexLexer.cs +++ b/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexLexer.cs @@ -303,7 +303,7 @@ private static bool IsEscapeCategoryChar(VirtualChar ch) if (error) { token = token.AddDiagnosticIfNone(new EmbeddedDiagnostic( - FeaturesResources.Capture_group_numbers_must_be_less_than_or_equal_to_Int32_MaxValue, + FeaturesResources.Quantifier_and_capture_group_numbers_must_be_less_than_or_equal_to_Int32_MaxValue, token.GetSpan())); } diff --git a/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexParser.cs b/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexParser.cs index 629da0fe12c81..ee8ae3062ccdf 100644 --- a/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexParser.cs +++ b/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexParser.cs @@ -811,7 +811,7 @@ private RegexConditionalGroupingNode ParseConditionalGrouping(RegexToken openPar { innerCloseParenToken = CreateMissingToken(RegexKind.CloseParenToken); capture = capture.AddDiagnosticIfNone(new EmbeddedDiagnostic( - FeaturesResources.Malformed, + FeaturesResources.Conditional_alternation_is_missing_a_closing_parenthesis_after_the_group_number, capture.GetSpan())); MoveBackBeforePreviousScan(); } @@ -1103,7 +1103,7 @@ private readonly void CheckCapture(ref RegexToken captureToken) if (!HasCapture(val)) { captureToken = captureToken.AddDiagnosticIfNone(new EmbeddedDiagnostic( - string.Format(FeaturesResources.Reference_to_undefined_group_number_0, val), + string.Format(FeaturesResources.Conditional_alternation_refers_to_an_undefined_group_number_0, val), captureToken.GetSpan())); } } @@ -2046,7 +2046,7 @@ private static void CheckQuantifierExpression(RegexExpressionNode? current, ref current.Kind == RegexKind.SimpleOptionsGrouping) { token = token.AddDiagnosticIfNone(new EmbeddedDiagnostic( - FeaturesResources.Quantifier_x_y_following_nothing, token.GetSpan())); + string.Format(FeaturesResources.Quantifier_0_following_nothing, token.VirtualChars.First()), token.GetSpan())); } else if (current is RegexQuantifierNode or RegexLazyQuantifierNode) { diff --git a/src/Features/Core/Portable/FeaturesResources.resx b/src/Features/Core/Portable/FeaturesResources.resx index 341a1e6399a03..ad6362ac8ef86 100644 --- a/src/Features/Core/Portable/FeaturesResources.resx +++ b/src/Features/Core/Portable/FeaturesResources.resx @@ -1747,8 +1747,8 @@ If the "H" format specifier is used without other custom format specifiers, it's Cannot include class \{0} in character range This is an error message shown to the user when they write an invalid Regular Expression. Example: [a-\w]. {0} is the invalid class (\w here) - - Capture group numbers must be less than or equal to Int32.MaxValue + + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} @@ -1775,8 +1775,8 @@ If the "H" format specifier is used without other custom format specifiers, it's Invalid group name: Group names must begin with a word character This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<a >a) - - malformed + + Conditional alternation is missing a closing parenthesis after the group number This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 @@ -1799,8 +1799,8 @@ If the "H" format specifier is used without other custom format specifiers, it's Not enough )'s This is an error message shown to the user when they write an invalid Regular Expression. Example: (a - - Quantifier {x,y} following nothing + + Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * @@ -1808,11 +1808,11 @@ If the "H" format specifier is used without other custom format specifiers, it's This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name {0} + Reference to undefined group name '{0}' This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') - - Reference to undefined group number {0} + + Conditional alternation refers to an undefined group number {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf index 05d48b0bea1c9..2331ae5b871c1 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf @@ -345,11 +345,6 @@ Ujistěte se, že specifikátor tt použijete pro jazyky, pro které je nezbytn Nejde navigovat k symbolu pod stříškou. - - Capture group numbers must be less than or equal to Int32.MaxValue - Čísla skupin digitalizace musí být menší nebo rovny hodnotě Int32.MaxValue - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Capture number cannot be zero Počet zachytávání nemůže být nulový @@ -505,6 +500,16 @@ Ujistěte se, že specifikátor tt použijete pro jazyky, pro které je nezbytn Komentáře nejsou povolené + + Conditional alternation is missing a closing parenthesis after the group number + Conditional alternation is missing a closing parenthesis after the group number + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + + + Conditional alternation refers to an undefined group number {0} + Conditional alternation refers to an undefined group number {0} + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') + Configure {0} code style Nakonfigurovat styl kódu {0} @@ -1040,11 +1045,6 @@ Ujistěte se, že specifikátor tt použijete pro jazyky, pro které je nezbytn Nastavení metody jako asynchronní vyžaduje restartování aplikace, protože tuto akci modul runtime nepodporuje. - - malformed - chybný formát - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - Malformed \p{X} character escape Chybně formátovaná řídicí sekvence znaků \p{X} @@ -1320,11 +1320,16 @@ Ujistěte se, že specifikátor tt použijete pro jazyky, pro které je nezbytn Vyžádat vybrané členy až do {0} - - Quantifier {x,y} following nothing - Před kvantifikátorem {x,y} není nic uvedeno. + + Quantifier '{0}' following nothing + Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * + + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Query Dotaz @@ -1336,15 +1341,10 @@ Ujistěte se, že specifikátor tt použijete pro jazyky, pro které je nezbytn This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name {0} - Odkaz na nedefinovaný název skupiny {0} + Reference to undefined group name '{0}' + Odkaz na nedefinovaný název skupiny {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') - - Reference to undefined group number {0} - Odkaz na nedefinované číslo skupiny {0} - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') - All control characters. This includes the Cc, Cf, Cs, Co, and Cn categories. Všechny řídicí znaky. Patří k nim kategorie Cc, Cf, Cs, Co a Cn. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.de.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.de.xlf index dd2210ef3894b..f5c768b9f07b8 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.de.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.de.xlf @@ -345,11 +345,6 @@ Stellen Sie sicher, dass Sie den Bezeichner "tt" für Sprachen verwenden, für d Navigieren zu dem Symbol unter dem Caret nicht möglich. - - Capture group numbers must be less than or equal to Int32.MaxValue - Erfassungsgruppennummern müssen kleiner oder gleich Int32.MaxValue sein. - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Capture number cannot be zero Aufzeichnungsnummer darf nicht 0 (null) sein. @@ -505,6 +500,16 @@ Stellen Sie sicher, dass Sie den Bezeichner "tt" für Sprachen verwenden, für d Nicht zulässige Kommentare + + Conditional alternation is missing a closing parenthesis after the group number + Conditional alternation is missing a closing parenthesis after the group number + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + + + Conditional alternation refers to an undefined group number {0} + Conditional alternation refers to an undefined group number {0} + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') + Configure {0} code style Codeformat "{0}" konfigurieren @@ -1040,11 +1045,6 @@ Stellen Sie sicher, dass Sie den Bezeichner "tt" für Sprachen verwenden, für d Das Festlegen einer Methode als asynchron erfordert einen Neustart der Anwendung, da es von der Laufzeit nicht unterstützt wird. - - malformed - fehlerhaft - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - Malformed \p{X} character escape Falsch formatiertes \p{X}-Escapezeichen. @@ -1320,11 +1320,16 @@ Stellen Sie sicher, dass Sie den Bezeichner "tt" für Sprachen verwenden, für d Ausgewählte Elemente bis {0} ziehen - - Quantifier {x,y} following nothing - Quantifizierer {x,y} nach nichts. + + Quantifier '{0}' following nothing + Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * + + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Query Abfrage @@ -1336,15 +1341,10 @@ Stellen Sie sicher, dass Sie den Bezeichner "tt" für Sprachen verwenden, für d This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name {0} - Verweis auf nicht definierten Gruppennamen {0} + Reference to undefined group name '{0}' + Verweis auf nicht definierten Gruppennamen {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') - - Reference to undefined group number {0} - Verweis auf nicht definierte Gruppennummer {0} - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') - All control characters. This includes the Cc, Cf, Cs, Co, and Cn categories. Alle Steuerzeichen. Hierzu gehören die Kategorien "Cc", "Cf", "Cs", "Co" und "Cn". diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.es.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.es.xlf index a2c274adf719c..c4c56a0158d81 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.es.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.es.xlf @@ -345,11 +345,6 @@ Asegúrese de usar el especificador "tt" para los idiomas para los que es necesa No se puede navegar al símbolo que hay debajo del símbolo de intercalación. - - Capture group numbers must be less than or equal to Int32.MaxValue - La captura de números de grupo deben ser menor o igual a Int32.MaxValue - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Capture number cannot be zero La captura de número no puede ser cero @@ -505,6 +500,16 @@ Asegúrese de usar el especificador "tt" para los idiomas para los que es necesa Comentarios no permitidos + + Conditional alternation is missing a closing parenthesis after the group number + Conditional alternation is missing a closing parenthesis after the group number + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + + + Conditional alternation refers to an undefined group number {0} + Conditional alternation refers to an undefined group number {0} + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') + Configure {0} code style Configurar el estilo de código de {0} @@ -1040,11 +1045,6 @@ Asegúrese de usar el especificador "tt" para los idiomas para los que es necesa Para convertir un método en asincrónico, es necesario reiniciar la aplicación porque no es compatible con el tiempo de ejecución. - - malformed - con formato incorrecto - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - Malformed \p{X} character escape Escape de carácter incorrecto \p{X} @@ -1320,11 +1320,16 @@ Asegúrese de usar el especificador "tt" para los idiomas para los que es necesa Subir miembros seleccionados hasta {0} - - Quantifier {x,y} following nothing - Cuantificador {x,y} después de nada + + Quantifier '{0}' following nothing + Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * + + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Query Consulta @@ -1336,15 +1341,10 @@ Asegúrese de usar el especificador "tt" para los idiomas para los que es necesa This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name {0} - Referencia a nombre de grupo no definido {0} + Reference to undefined group name '{0}' + Referencia a nombre de grupo no definido {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') - - Reference to undefined group number {0} - Referencia al número de grupo indefinido {0} - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') - All control characters. This includes the Cc, Cf, Cs, Co, and Cn categories. Todos los caracteres de control. Esto incluye las categorías Cc, Cf, Cs, Co y Cn. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf index 8ad452cc07bda..2dbb723ae82f8 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf @@ -345,11 +345,6 @@ Veillez à utiliser le spécificateur "tt" pour les langues où il est nécessai Impossible de naviguer jusqu'au symbole sous le caret. - - Capture group numbers must be less than or equal to Int32.MaxValue - Les nombres de groupe de capture doivent être inférieurs ou égaux à Int32.MaxValue - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Capture number cannot be zero Le nombre de captures ne peut pas être égal à zéro @@ -505,6 +500,16 @@ Veillez à utiliser le spécificateur "tt" pour les langues où il est nécessai Commentaires non autorisés + + Conditional alternation is missing a closing parenthesis after the group number + Conditional alternation is missing a closing parenthesis after the group number + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + + + Conditional alternation refers to an undefined group number {0} + Conditional alternation refers to an undefined group number {0} + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') + Configure {0} code style Configurer le style de code {0} @@ -1040,11 +1045,6 @@ Veillez à utiliser le spécificateur "tt" pour les langues où il est nécessai La création d’une méthode asynchrone nécessite le redémarrage de l’application, car elle n’est pas prise en charge par le runtime. - - malformed - incorrecte - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - Malformed \p{X} character escape Caractère d'échappement incorrect \p{X} @@ -1320,11 +1320,16 @@ Veillez à utiliser le spécificateur "tt" pour les langues où il est nécessai Extraire les membres sélectionnés jusqu’à {0} - - Quantifier {x,y} following nothing - Le quantificateur {x,y} ne suit rien + + Quantifier '{0}' following nothing + Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * + + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Query Requête @@ -1336,15 +1341,10 @@ Veillez à utiliser le spécificateur "tt" pour les langues où il est nécessai This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name {0} - Référence au nom de groupe indéfini {0} + Reference to undefined group name '{0}' + Référence au nom de groupe indéfini {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') - - Reference to undefined group number {0} - Référence à un numéro de groupe indéfini {0} - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') - All control characters. This includes the Cc, Cf, Cs, Co, and Cn categories. Tous les caractères de contrôle. Cela inclut les catégories Cc, Cf, Cs, Co et Cn. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.it.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.it.xlf index 898ec652c325d..93e776ac076dd 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.it.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.it.xlf @@ -345,11 +345,6 @@ Assicurarsi di usare l'identificatore "tt" per le lingue per le quali è necessa Non è possibile passare al simbolo sotto il punto di inserimento. - - Capture group numbers must be less than or equal to Int32.MaxValue - I numeri del gruppo Capture devono essere minori o uguali a Int32.MaxValue - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Capture number cannot be zero Il numero di acquisizioni non può essere zero @@ -505,6 +500,16 @@ Assicurarsi di usare l'identificatore "tt" per le lingue per le quali è necessa Commenti non consentiti + + Conditional alternation is missing a closing parenthesis after the group number + Conditional alternation is missing a closing parenthesis after the group number + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + + + Conditional alternation refers to an undefined group number {0} + Conditional alternation refers to an undefined group number {0} + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') + Configure {0} code style Configura lo stile del codice di {0} @@ -1040,11 +1045,6 @@ Assicurarsi di usare l'identificatore "tt" per le lingue per le quali è necessa Per rendere un metodo asincrono, è necessario riavviare l'applicazione perché non è supportata dal runtime. - - malformed - non valido - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - Malformed \p{X} character escape Sequenza di caratteri di escape \\p{X} non valida @@ -1320,11 +1320,16 @@ Assicurarsi di usare l'identificatore "tt" per le lingue per le quali è necessa Pull dei membri selezionati fino a {0} - - Quantifier {x,y} following nothing - Il quantificatore {x,y} non segue alcun elemento + + Quantifier '{0}' following nothing + Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * + + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Query Query @@ -1336,15 +1341,10 @@ Assicurarsi di usare l'identificatore "tt" per le lingue per le quali è necessa This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name {0} - Riferimento a nome di gruppo indefinito: {0} + Reference to undefined group name '{0}' + Riferimento a nome di gruppo indefinito: {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') - - Reference to undefined group number {0} - Riferimento a numero di gruppo indefinito: {0} - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') - All control characters. This includes the Cc, Cf, Cs, Co, and Cn categories. Tutti i caratteri di controllo. Sono incluse le categorie Cc, Cf, Cs, Co e Cn. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf index a69c6a61f20a3..35038fe9f8e3f 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf @@ -345,11 +345,6 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma カレットの下のシンボルに移動できません。 - - Capture group numbers must be less than or equal to Int32.MaxValue - キャプチャ グループ番号は Int32.MaxValue 以下でなければなりません - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Capture number cannot be zero キャプチャ番号を 0 にすることはできません @@ -505,6 +500,16 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma コメントは使用できません + + Conditional alternation is missing a closing parenthesis after the group number + Conditional alternation is missing a closing parenthesis after the group number + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + + + Conditional alternation refers to an undefined group number {0} + Conditional alternation refers to an undefined group number {0} + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') + Configure {0} code style {0} コード スタイルの構成 @@ -1040,11 +1045,6 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma ランタイムでサポートされていないため、メソッドを非同期にするには、アプリケーションを再起動する必要があります。 - - malformed - 不正な形式 - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - Malformed \p{X} character escape 間違った形式の \p{X} エスケープ文字です @@ -1320,11 +1320,16 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma 選択したメンバーを最大 {0} 人選出 - - Quantifier {x,y} following nothing - 量指定子 {x,y} の前に何もありません + + Quantifier '{0}' following nothing + Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * + + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Query クエリ @@ -1336,15 +1341,10 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name {0} - 未定義のグループ名 {0} への参照 + Reference to undefined group name '{0}' + 未定義のグループ名 {0} への参照 This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') - - Reference to undefined group number {0} - 未定義のグループ番号 {0} への参照 - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') - All control characters. This includes the Cc, Cf, Cs, Co, and Cn categories. すべての制御文字。これには、Cc、Cf、Cs、Co、Cn カテゴリが含まれます。 diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf index d2d6b992e5016..eb5704c62b14f 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf @@ -345,11 +345,6 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma 캐럿에서 기호를 탐색할 수 없습니다. - - Capture group numbers must be less than or equal to Int32.MaxValue - 캡처 그룹 번호는 Int32.MaxValue보다 작거나 같아야 합니다. - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Capture number cannot be zero 캡처 번호는 0일 수 없습니다. @@ -505,6 +500,16 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma 주석이 허용되지 않습니다. + + Conditional alternation is missing a closing parenthesis after the group number + Conditional alternation is missing a closing parenthesis after the group number + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + + + Conditional alternation refers to an undefined group number {0} + Conditional alternation refers to an undefined group number {0} + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') + Configure {0} code style {0} 코드 스타일 구성 @@ -1040,11 +1045,6 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma 런타임에서 지원하지 않기 때문에 메서드를 비동기화하려면 애플리케이션을 다시 시작해야 합니다. - - malformed - 형식이 잘못되었습니다. - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - Malformed \p{X} character escape 형식이 잘못된 \p{X} 문자 이스케이프 @@ -1320,11 +1320,16 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma 선택한 멤버를 최대 {0}까지 끌어오기 - - Quantifier {x,y} following nothing - 수량자 {x,y} 앞에 아무 것도 없습니다. + + Quantifier '{0}' following nothing + Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * + + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Query 쿼리 @@ -1336,15 +1341,10 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name {0} - 정의되지 않은 그룹 이름 {0}에 대한 참조입니다. + Reference to undefined group name '{0}' + 정의되지 않은 그룹 이름 {0}에 대한 참조입니다. This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') - - Reference to undefined group number {0} - 정의되지 않은 그룹 번호 {0}을(를) 참조합니다. - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') - All control characters. This includes the Cc, Cf, Cs, Co, and Cn categories. 모든 제어 문자입니다. Cc, Cf, Cs, Co 및 Cn 범주가 포함됩니다. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf index 280c77a1c60bd..e6c0a3abec2f9 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf @@ -345,11 +345,6 @@ Pamiętaj, aby nie używać specyfikatora „tt” dla wszystkich języków, w k Nie można przejść do symbolu pod karetką. - - Capture group numbers must be less than or equal to Int32.MaxValue - Wartość przechwytywania numerów grup musi być mniejsza lub równa wartości Int32.MaxValue - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Capture number cannot be zero Numer przechwytywania nie może być równy zeru @@ -505,6 +500,16 @@ Pamiętaj, aby nie używać specyfikatora „tt” dla wszystkich języków, w k Komentarze są niedozwolone + + Conditional alternation is missing a closing parenthesis after the group number + Conditional alternation is missing a closing parenthesis after the group number + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + + + Conditional alternation refers to an undefined group number {0} + Conditional alternation refers to an undefined group number {0} + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') + Configure {0} code style Konfiguruj styl kodu {0} @@ -1040,11 +1045,6 @@ Pamiętaj, aby nie używać specyfikatora „tt” dla wszystkich języków, w k Ustanawianie metody asynchroniczną wymaga ponownego uruchomienia aplikacji, ponieważ nie jest to obsługiwane przez środowisko uruchomieniowe. - - malformed - źle sformułowane - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - Malformed \p{X} character escape Źle sformułowana sekwencja ucieczki znaku \p{X} @@ -1320,11 +1320,16 @@ Pamiętaj, aby nie używać specyfikatora „tt” dla wszystkich języków, w k Wyciągnij wybrane elementy składowe w górę do {0} - - Quantifier {x,y} following nothing - Nic nie występuje przed kwantyfikatorem {x,y} + + Quantifier '{0}' following nothing + Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * + + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Query Zapytanie @@ -1336,15 +1341,10 @@ Pamiętaj, aby nie używać specyfikatora „tt” dla wszystkich języków, w k This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name {0} - Odwołanie do niezdefiniowanej nazwy grupy {0} + Reference to undefined group name '{0}' + Odwołanie do niezdefiniowanej nazwy grupy {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') - - Reference to undefined group number {0} - Odwołanie do niezdefiniowanego numeru grupy {0} - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') - All control characters. This includes the Cc, Cf, Cs, Co, and Cn categories. Wszystkie znaki kontrolne. Obejmuje to kategorie Cc, Cf, Cs, Co i Cn. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf index 3cb31e2b24a31..5440fe5a9af0a 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf @@ -345,11 +345,6 @@ Verifique se o especificador "tt" foi usado para idiomas para os quais é necess Não é possível navegar para o símbolo sob o cursor. - - Capture group numbers must be less than or equal to Int32.MaxValue - Os números do grupo de captura devem ser menores ou iguais a Int32.MaxValue - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Capture number cannot be zero O número da captura não pode ser zero @@ -505,6 +500,16 @@ Verifique se o especificador "tt" foi usado para idiomas para os quais é necess Comentários não permitidos + + Conditional alternation is missing a closing parenthesis after the group number + Conditional alternation is missing a closing parenthesis after the group number + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + + + Conditional alternation refers to an undefined group number {0} + Conditional alternation refers to an undefined group number {0} + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') + Configure {0} code style Configurar estilo de código de {0} @@ -1040,11 +1045,6 @@ Verifique se o especificador "tt" foi usado para idiomas para os quais é necess Tornar um método assíncrono requer reiniciar o aplicativo porque não há suporte para o tempo de execução. - - malformed - malformado - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - Malformed \p{X} character escape Escape de caractere malformado \p{X} @@ -1320,11 +1320,16 @@ Verifique se o especificador "tt" foi usado para idiomas para os quais é necess Efetuar pull dos membros selecionados para {0} - - Quantifier {x,y} following nothing - Nada precede o quantificador {x,y} + + Quantifier '{0}' following nothing + Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * + + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Query Consulta @@ -1336,15 +1341,10 @@ Verifique se o especificador "tt" foi usado para idiomas para os quais é necess This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name {0} - Referência ao nome do grupo indefinido {0} + Reference to undefined group name '{0}' + Referência ao nome do grupo indefinido {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') - - Reference to undefined group number {0} - Referência ao grupo número {0} indefinido - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') - All control characters. This includes the Cc, Cf, Cs, Co, and Cn categories. Todos os caracteres de controle. Isso inclui as categorias Cc, Cf, Cs, Co e Cn. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf index 7e21da7e18e80..062e2496367ad 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf @@ -345,11 +345,6 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma Не удается перейти к символу, на котором находится курсор. - - Capture group numbers must be less than or equal to Int32.MaxValue - Номера групп записи должны быть меньше или равны Int32.MaxValue - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Capture number cannot be zero Номер записи не может быть равен нулю @@ -505,6 +500,16 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma Комментарии не разрешены + + Conditional alternation is missing a closing parenthesis after the group number + Conditional alternation is missing a closing parenthesis after the group number + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + + + Conditional alternation refers to an undefined group number {0} + Conditional alternation refers to an undefined group number {0} + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') + Configure {0} code style Настройка стиля кода {0} @@ -1040,11 +1045,6 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma Чтобы сделать метод асинхронным, требуется перезапустить приложение, так как это не поддерживается средой выполнения. - - malformed - Ошибка в регулярном выражении - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - Malformed \p{X} character escape Неправильная escape-последовательность \p{X} @@ -1320,11 +1320,16 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma Вытянуть выбранные элементы до {0} - - Quantifier {x,y} following nothing - Отсутствуют элементы перед квантификатором {x,y} + + Quantifier '{0}' following nothing + Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * + + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Query Запрос @@ -1336,15 +1341,10 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name {0} - Ссылка на неопределенное имя группы {0} + Reference to undefined group name '{0}' + Ссылка на неопределенное имя группы {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') - - Reference to undefined group number {0} - Ссылка на неопределенный номер группы {0} - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') - All control characters. This includes the Cc, Cf, Cs, Co, and Cn categories. Все управляющие символы. Сюда входят категории Cc, Cf, Cs, Co и Cn. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf index 4a3149c97bb4b..54840de14ac3b 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf @@ -345,11 +345,6 @@ AM ve PM arasındaki farkın korunmasının gerekli olduğu diller için "tt" be Giriş işareti altında sembole gidilemiyor. - - Capture group numbers must be less than or equal to Int32.MaxValue - Yakalama grup numaraları Int32.MaxValue eşit veya daha az olmalıdır - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Capture number cannot be zero Yakalama numarası sıfır olamaz @@ -505,6 +500,16 @@ AM ve PM arasındaki farkın korunmasının gerekli olduğu diller için "tt" be Açıklamalara izin verilmiyor + + Conditional alternation is missing a closing parenthesis after the group number + Conditional alternation is missing a closing parenthesis after the group number + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + + + Conditional alternation refers to an undefined group number {0} + Conditional alternation refers to an undefined group number {0} + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') + Configure {0} code style {0} kod stilini yapılandır @@ -1040,11 +1045,6 @@ AM ve PM arasındaki farkın korunmasının gerekli olduğu diller için "tt" be Bir metodu zaman uyumsuz yapmak çalışma zamanı tarafından desteklenmediğinden uygulamanın yeniden başlatılmasını gerektirir. - - malformed - Hatalı biçimlendirilmiş - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - Malformed \p{X} character escape Hatalı biçimlendirilmiş \p{X} karakter kaçış @@ -1320,11 +1320,16 @@ AM ve PM arasındaki farkın korunmasının gerekli olduğu diller için "tt" be Seçili üyeleri {0} öğesine yukarı çek - - Quantifier {x,y} following nothing - Niceleyici {x,y} hiçbir şeyi takip etmiyor + + Quantifier '{0}' following nothing + Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * + + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Query Sorgu @@ -1336,15 +1341,10 @@ AM ve PM arasındaki farkın korunmasının gerekli olduğu diller için "tt" be This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name {0} - {0} tanımsız grup adı referansı + Reference to undefined group name '{0}' + {0} tanımsız grup adı referansı This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') - - Reference to undefined group number {0} - Tanımlanmamış grup numarası {0} referansı - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') - All control characters. This includes the Cc, Cf, Cs, Co, and Cn categories. Tüm denetim karakterleri. Buna Cc, Cf, Cs, Co ve Cn kategorileri dahildir. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf index 27f0ec9550818..ded461d1dc97a 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf @@ -345,11 +345,6 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma 无法导航到插入点下面的符号。 - - Capture group numbers must be less than or equal to Int32.MaxValue - 捕获组编号必须小于等于 Int32.MaxValue - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Capture number cannot be zero 捕获编号不能为零 @@ -505,6 +500,16 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma 不允许注释 + + Conditional alternation is missing a closing parenthesis after the group number + Conditional alternation is missing a closing parenthesis after the group number + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + + + Conditional alternation refers to an undefined group number {0} + Conditional alternation refers to an undefined group number {0} + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') + Configure {0} code style 配置 {0} 代码样式 @@ -1040,11 +1045,6 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma 使方法异步需要重启应用程序,因为运行时不支持此操作。 - - malformed - 格式错误 - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - Malformed \p{X} character escape \p{X} 字符转义格式错误 @@ -1320,11 +1320,16 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma 将所选成员向上拉取到 {0} - - Quantifier {x,y} following nothing - 限定符 {x,y} 前没有任何内容 + + Quantifier '{0}' following nothing + Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * + + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Query 查询 @@ -1336,15 +1341,10 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name {0} - 对未定义的组名 {0} 的引用 + Reference to undefined group name '{0}' + 对未定义的组名 {0} 的引用 This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') - - Reference to undefined group number {0} - 对未定义的组编号 {0} 的引用 - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') - All control characters. This includes the Cc, Cf, Cs, Co, and Cn categories. 所有控制字符。这包括 Cc、Cf、Cs、Co 和 Cn 类别。 diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf index 2338867474297..d6a2c29768ce0 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf @@ -345,11 +345,6 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma 無法巡覽至插入號下的符號。 - - Capture group numbers must be less than or equal to Int32.MaxValue - 擷取群組號碼必須小於或等於 Int32.MaxValue - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Capture number cannot be zero 擷取號碼不可為零 @@ -505,6 +500,16 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma 不允許的註解 + + Conditional alternation is missing a closing parenthesis after the group number + Conditional alternation is missing a closing parenthesis after the group number + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + + + Conditional alternation refers to an undefined group number {0} + Conditional alternation refers to an undefined group number {0} + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') + Configure {0} code style 設定 {0} 程式碼樣式 @@ -1040,11 +1045,6 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma 因為執行時間不支援,所以製作非同步方法需要重新開機應用程式。 - - malformed - 語式錯誤 - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - Malformed \p{X} character escape \p{X} 字元逸出語式錯誤 @@ -1320,11 +1320,16 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma 將選取的成員最多提取 {0} - - Quantifier {x,y} following nothing - 數量詞 {x,y} 前面沒有任何項目 + + Quantifier '{0}' following nothing + Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * + + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Query 查詢 @@ -1336,15 +1341,10 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name {0} - 對未定義群組名稱 {0} 的參考 + Reference to undefined group name '{0}' + 對未定義群組名稱 {0} 的參考 This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') - - Reference to undefined group number {0} - 參考未定義的群組號碼 {0} - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') - All control characters. This includes the Cc, Cf, Cs, Co, and Cn categories. 所有控制字元。這包括了 Cc、Cf、Cs、Co 和 Cn 分類。 From 4e84ae152be2a68bda536cc0b2ccc7fd657b8174 Mon Sep 17 00:00:00 2001 From: Cyrus Najmabadi Date: Wed, 4 Dec 2024 10:30:51 -0800 Subject: [PATCH 02/15] in progress --- .../RegularExpressions/CSharpRegexParserTests.cs | 2 +- .../RegularExpressions/CSharpRegexParserTests_BasicTests.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests.cs b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests.cs index d4a28c7eb41b7..bf3e66cad620c 100644 --- a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests.cs +++ b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests.cs @@ -353,7 +353,7 @@ private static string And(params string[] regexes) private static string Not(string regex) => $"(?({regex})[0-[0]]|.*)"; - [Fact] + //[Fact] public void TestDeepRecursion() { var (token, tree, chars) = diff --git a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs index 6484a28a51caf..b163fe78b1883 100644 --- a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs +++ b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs @@ -4519,7 +4519,7 @@ public void TestOctalEscape9() - + From c4ba8fb1ea1a60171cc54d473bb484ce4735338a Mon Sep 17 00:00:00 2001 From: Cyrus Najmabadi Date: Wed, 4 Dec 2024 10:32:12 -0800 Subject: [PATCH 03/15] REvert --- .../CSharpRegexParserTests.cs | 2 +- .../CSharpRegexParserTests_BasicTests.cs | 138 +++++++++--------- ...arpRegexParserTests_DotnetNegativeTests.cs | 50 +++---- .../CSharpRegexParserTests_RealWorld.cs | 2 +- .../RegularExpressions/RegexLexer.cs | 2 +- .../RegularExpressions/RegexParser.cs | 6 +- .../Core/Portable/FeaturesResources.resx | 18 +-- 7 files changed, 109 insertions(+), 109 deletions(-) diff --git a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests.cs b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests.cs index bf3e66cad620c..d4a28c7eb41b7 100644 --- a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests.cs +++ b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests.cs @@ -353,7 +353,7 @@ private static string And(params string[] regexes) private static string Not(string regex) => $"(?({regex})[0-[0]]|.*)"; - //[Fact] + [Fact] public void TestDeepRecursion() { var (token, tree, chars) = diff --git a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs index b163fe78b1883..52e14b73efff3 100644 --- a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs +++ b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs @@ -506,7 +506,7 @@ public void TestOpenQuestion1() - + @@ -539,7 +539,7 @@ public void TestOpenQuestion2() - + @@ -575,7 +575,7 @@ public void TestOpenQuestion3() - + @@ -612,7 +612,7 @@ public void TestOpenQuestion4() - + @@ -1906,7 +1906,7 @@ public void TestLargeExactRangeNumericQuantifier2() - + @@ -1965,7 +1965,7 @@ public void TestLargeOpenRangeNumericQuantifier2() - + @@ -2026,7 +2026,7 @@ public void TestLargeClosedRangeNumericQuantifier2() - + @@ -2479,7 +2479,7 @@ public void TestDanglingNumericQuantifier1() - + @@ -2507,7 +2507,7 @@ public void TestDanglingNumericQuantifier2() - + @@ -2594,7 +2594,7 @@ public void TestAsteriskQuantifierAtStart() - + @@ -2625,7 +2625,7 @@ public void TestAsteriskQuantifierAtStartOfGroup() - + @@ -2682,7 +2682,7 @@ public void TestPlusQuantifierAtStart() - + @@ -2713,7 +2713,7 @@ public void TestPlusQuantifierAtStartOfGroup() - + @@ -2770,7 +2770,7 @@ public void TestQuestionQuantifierAtStart() - + @@ -2801,7 +2801,7 @@ public void TestQuestionQuantifierAtStartOfGroup() - + @@ -2863,7 +2863,7 @@ public void TestNumericQuantifierAtStart() - + @@ -2897,7 +2897,7 @@ public void TestNumericQuantifierAtStartOfGroup() - + @@ -4519,7 +4519,7 @@ public void TestOctalEscape9() - + @@ -4571,7 +4571,7 @@ public void TestOctalEscape11() - + @@ -8795,7 +8795,7 @@ public void TestBalancingGroupingUndefinedReference1() - + @@ -9168,7 +9168,7 @@ public void TestBalancingGroupingAutoNumbers() - + @@ -9250,7 +9250,7 @@ public void TestBalancingGroupingAutoNumbers1() - + @@ -9333,7 +9333,7 @@ public void TestBalancingGroupingAutoNumbers2() - + @@ -9420,7 +9420,7 @@ public void TestBalancingGroupingAutoNumbers3() - + @@ -9500,7 +9500,7 @@ public void TestBalancingGroupingAutoNumbers4() - + @@ -9582,10 +9582,10 @@ public void TestBalancingGroupingAutoNumbers5_1() - - + + - + @@ -9667,7 +9667,7 @@ public void TestBalancingGroupingAutoNumbers5() - + @@ -9750,7 +9750,7 @@ public void TestBalancingGroupingAutoNumbers6() - + @@ -9837,10 +9837,10 @@ public void TestBalancingGroupingAutoNumbers7_1() - - + + - + @@ -9927,7 +9927,7 @@ public void TestBalancingGroupingAutoNumbers7() - + @@ -10285,7 +10285,7 @@ public void TestConditionalCapture2() - + @@ -10585,7 +10585,7 @@ public void TestConditionalCapture10() - + @@ -11163,7 +11163,7 @@ public void TestCommentInConditionalGrouping1() - + @@ -11207,7 +11207,7 @@ public void TestCommentInConditionalGrouping2() - + @@ -11251,7 +11251,7 @@ public void TestCommentInConditionalGrouping3() - + @@ -11535,7 +11535,7 @@ public void TestBackreference1() - + @@ -11564,7 +11564,7 @@ public void TestBackreference2() - + @@ -16034,7 +16034,7 @@ public void TestCaptures2() - + @@ -16101,7 +16101,7 @@ public void TestCaptures4() - + @@ -16132,7 +16132,7 @@ public void TestCaptures5() - + @@ -16168,7 +16168,7 @@ public void TestCaptures6() - + @@ -16259,7 +16259,7 @@ public void TestCaptures8() - + @@ -16306,8 +16306,8 @@ public void TestCaptures9() - - + + @@ -16353,8 +16353,8 @@ public void TestCaptures10() - - + + @@ -16400,8 +16400,8 @@ public void TestCaptures11() - - + + @@ -16447,8 +16447,8 @@ public void TestCaptures12() - - + + @@ -16629,8 +16629,8 @@ public void TestCaptures16() - - + + @@ -16676,7 +16676,7 @@ public void TestCaptures17() - + @@ -16819,8 +16819,8 @@ public void TestCaptures20() - - + + @@ -16917,8 +16917,8 @@ public void TestCaptures22() - - + + @@ -17013,8 +17013,8 @@ public void TestCaptures24() - - + + @@ -17109,8 +17109,8 @@ public void TestCaptures26() - - + + @@ -17264,8 +17264,8 @@ public void TestCaptures29() - - + + @@ -17317,8 +17317,8 @@ public void TestCaptures30() - - + + diff --git a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_DotnetNegativeTests.cs b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_DotnetNegativeTests.cs index 1666c21d87bef..b70ccc59d18dc 100644 --- a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_DotnetNegativeTests.cs +++ b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_DotnetNegativeTests.cs @@ -168,7 +168,7 @@ public void NegativeTest4() - + @@ -261,7 +261,7 @@ public void NegativeTest7() - + @@ -927,7 +927,7 @@ public void NegativeTest29() - + @@ -1163,7 +1163,7 @@ public void NegativeTest36() - + @@ -1204,7 +1204,7 @@ public void NegativeTest37() - + @@ -1250,7 +1250,7 @@ public void NegativeTest38() - + @@ -1300,7 +1300,7 @@ public void NegativeTest39() - + @@ -1354,7 +1354,7 @@ public void NegativeTest40() - + @@ -1422,7 +1422,7 @@ public void NegativeTest42() - + @@ -1736,7 +1736,7 @@ public void NegativeTest52() - + @@ -1775,7 +1775,7 @@ public void NegativeTest53() - + @@ -2105,7 +2105,7 @@ public void NegativeTest62() - + @@ -2143,7 +2143,7 @@ public void NegativeTest63() - + @@ -2281,7 +2281,7 @@ public void NegativeTest66() - + @@ -2322,7 +2322,7 @@ public void NegativeTest67() - + @@ -2358,7 +2358,7 @@ public void NegativeTest68() - + @@ -2544,7 +2544,7 @@ public void NegativeTest73() - + @@ -2689,7 +2689,7 @@ public void NegativeTest76() - + @@ -2938,7 +2938,7 @@ public void NegativeTest80() - + @@ -4292,7 +4292,7 @@ public void NegativeTest106() - + @@ -5094,7 +5094,7 @@ public void NegativeTest125() - + @@ -5271,7 +5271,7 @@ public void NegativeTest128() - + @@ -5324,7 +5324,7 @@ public void NegativeTest129() - + @@ -5377,7 +5377,7 @@ public void NegativeTest130() - + @@ -5721,7 +5721,7 @@ public void NegativeTest136() - + diff --git a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_RealWorld.cs b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_RealWorld.cs index f113fa03d36e6..8273ba798f170 100644 --- a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_RealWorld.cs +++ b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_RealWorld.cs @@ -37,7 +37,7 @@ public void TestRealWorldCases(string pattern, int options) public static IEnumerable GetRealWorldCases() { using var stream = typeof(CSharpRegexParserTests).Assembly.GetManifestResourceStream("Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.EmbeddedLanguages.RegularExpressions.Regex_RealWorldPatterns.json"); - using var streamReader = new StreamReader(stream!); + using var streamReader = new StreamReader(stream); using var textReader = new JsonTextReader(streamReader); foreach (var obj in JArray.Load(textReader)) diff --git a/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexLexer.cs b/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexLexer.cs index 8a6b654273e0d..397fa4abc0efc 100644 --- a/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexLexer.cs +++ b/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexLexer.cs @@ -303,7 +303,7 @@ private static bool IsEscapeCategoryChar(VirtualChar ch) if (error) { token = token.AddDiagnosticIfNone(new EmbeddedDiagnostic( - FeaturesResources.Quantifier_and_capture_group_numbers_must_be_less_than_or_equal_to_Int32_MaxValue, + FeaturesResources.Capture_group_numbers_must_be_less_than_or_equal_to_Int32_MaxValue, token.GetSpan())); } diff --git a/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexParser.cs b/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexParser.cs index ee8ae3062ccdf..629da0fe12c81 100644 --- a/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexParser.cs +++ b/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexParser.cs @@ -811,7 +811,7 @@ private RegexConditionalGroupingNode ParseConditionalGrouping(RegexToken openPar { innerCloseParenToken = CreateMissingToken(RegexKind.CloseParenToken); capture = capture.AddDiagnosticIfNone(new EmbeddedDiagnostic( - FeaturesResources.Conditional_alternation_is_missing_a_closing_parenthesis_after_the_group_number, + FeaturesResources.Malformed, capture.GetSpan())); MoveBackBeforePreviousScan(); } @@ -1103,7 +1103,7 @@ private readonly void CheckCapture(ref RegexToken captureToken) if (!HasCapture(val)) { captureToken = captureToken.AddDiagnosticIfNone(new EmbeddedDiagnostic( - string.Format(FeaturesResources.Conditional_alternation_refers_to_an_undefined_group_number_0, val), + string.Format(FeaturesResources.Reference_to_undefined_group_number_0, val), captureToken.GetSpan())); } } @@ -2046,7 +2046,7 @@ private static void CheckQuantifierExpression(RegexExpressionNode? current, ref current.Kind == RegexKind.SimpleOptionsGrouping) { token = token.AddDiagnosticIfNone(new EmbeddedDiagnostic( - string.Format(FeaturesResources.Quantifier_0_following_nothing, token.VirtualChars.First()), token.GetSpan())); + FeaturesResources.Quantifier_x_y_following_nothing, token.GetSpan())); } else if (current is RegexQuantifierNode or RegexLazyQuantifierNode) { diff --git a/src/Features/Core/Portable/FeaturesResources.resx b/src/Features/Core/Portable/FeaturesResources.resx index ad6362ac8ef86..341a1e6399a03 100644 --- a/src/Features/Core/Portable/FeaturesResources.resx +++ b/src/Features/Core/Portable/FeaturesResources.resx @@ -1747,8 +1747,8 @@ If the "H" format specifier is used without other custom format specifiers, it's Cannot include class \{0} in character range This is an error message shown to the user when they write an invalid Regular Expression. Example: [a-\w]. {0} is the invalid class (\w here) - - Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. + + Capture group numbers must be less than or equal to Int32.MaxValue This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} @@ -1775,8 +1775,8 @@ If the "H" format specifier is used without other custom format specifiers, it's Invalid group name: Group names must begin with a word character This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<a >a) - - Conditional alternation is missing a closing parenthesis after the group number + + malformed This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 @@ -1799,8 +1799,8 @@ If the "H" format specifier is used without other custom format specifiers, it's Not enough )'s This is an error message shown to the user when they write an invalid Regular Expression. Example: (a - - Quantifier '{0}' following nothing + + Quantifier {x,y} following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * @@ -1808,11 +1808,11 @@ If the "H" format specifier is used without other custom format specifiers, it's This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name '{0}' + Reference to undefined group name {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') - - Conditional alternation refers to an undefined group number {0} + + Reference to undefined group number {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') From 9c2337e141048d91f2ef400354592675c19cc458 Mon Sep 17 00:00:00 2001 From: Cyrus Najmabadi Date: Wed, 4 Dec 2024 10:38:24 -0800 Subject: [PATCH 04/15] Fix loc string --- .../CSharpRegexParserTests.cs | 4 +- .../CSharpRegexParserTests_BasicTests.cs | 38 +++++++++---------- ...arpRegexParserTests_DotnetNegativeTests.cs | 36 +++++++++--------- .../RegularExpressions/RegexParser.cs | 2 +- .../Core/Portable/FeaturesResources.resx | 4 +- .../Portable/xlf/FeaturesResources.cs.xlf | 32 ++++++++-------- .../Portable/xlf/FeaturesResources.de.xlf | 32 ++++++++-------- .../Portable/xlf/FeaturesResources.es.xlf | 32 ++++++++-------- .../Portable/xlf/FeaturesResources.fr.xlf | 32 ++++++++-------- .../Portable/xlf/FeaturesResources.it.xlf | 32 ++++++++-------- .../Portable/xlf/FeaturesResources.ja.xlf | 32 ++++++++-------- .../Portable/xlf/FeaturesResources.ko.xlf | 32 ++++++++-------- .../Portable/xlf/FeaturesResources.pl.xlf | 32 ++++++++-------- .../Portable/xlf/FeaturesResources.pt-BR.xlf | 32 ++++++++-------- .../Portable/xlf/FeaturesResources.ru.xlf | 32 ++++++++-------- .../Portable/xlf/FeaturesResources.tr.xlf | 32 ++++++++-------- .../xlf/FeaturesResources.zh-Hans.xlf | 32 ++++++++-------- .../xlf/FeaturesResources.zh-Hant.xlf | 32 ++++++++-------- 18 files changed, 250 insertions(+), 250 deletions(-) diff --git a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests.cs b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests.cs index d4a28c7eb41b7..96c856077e162 100644 --- a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests.cs +++ b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests.cs @@ -353,7 +353,7 @@ private static string And(params string[] regexes) private static string Not(string regex) => $"(?({regex})[0-[0]]|.*)"; - [Fact] + //[Fact] public void TestDeepRecursion() { var (token, tree, chars) = @@ -375,7 +375,7 @@ public void TestDeepRecursion() Assert.Null(tree); } - [Fact] + // [Fact] public void TestNoStackOverflow() { for (var i = 1; i < 1200; i++) diff --git a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs index 52e14b73efff3..9e56052709b30 100644 --- a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs +++ b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs @@ -506,7 +506,7 @@ public void TestOpenQuestion1() - + @@ -539,7 +539,7 @@ public void TestOpenQuestion2() - + @@ -575,7 +575,7 @@ public void TestOpenQuestion3() - + @@ -612,7 +612,7 @@ public void TestOpenQuestion4() - + @@ -2479,7 +2479,7 @@ public void TestDanglingNumericQuantifier1() - + @@ -2507,7 +2507,7 @@ public void TestDanglingNumericQuantifier2() - + @@ -2594,7 +2594,7 @@ public void TestAsteriskQuantifierAtStart() - + @@ -2625,7 +2625,7 @@ public void TestAsteriskQuantifierAtStartOfGroup() - + @@ -2682,7 +2682,7 @@ public void TestPlusQuantifierAtStart() - + @@ -2713,7 +2713,7 @@ public void TestPlusQuantifierAtStartOfGroup() - + @@ -2770,7 +2770,7 @@ public void TestQuestionQuantifierAtStart() - + @@ -2801,7 +2801,7 @@ public void TestQuestionQuantifierAtStartOfGroup() - + @@ -2863,7 +2863,7 @@ public void TestNumericQuantifierAtStart() - + @@ -2897,7 +2897,7 @@ public void TestNumericQuantifierAtStartOfGroup() - + @@ -9585,7 +9585,7 @@ public void TestBalancingGroupingAutoNumbers5_1() - + @@ -9840,7 +9840,7 @@ public void TestBalancingGroupingAutoNumbers7_1() - + @@ -11163,7 +11163,7 @@ public void TestCommentInConditionalGrouping1() - + @@ -11207,7 +11207,7 @@ public void TestCommentInConditionalGrouping2() - + @@ -11251,7 +11251,7 @@ public void TestCommentInConditionalGrouping3() - + diff --git a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_DotnetNegativeTests.cs b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_DotnetNegativeTests.cs index b70ccc59d18dc..8fbc256a08ba0 100644 --- a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_DotnetNegativeTests.cs +++ b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_DotnetNegativeTests.cs @@ -261,7 +261,7 @@ public void NegativeTest7() - + @@ -927,7 +927,7 @@ public void NegativeTest29() - + @@ -1163,7 +1163,7 @@ public void NegativeTest36() - + @@ -1204,7 +1204,7 @@ public void NegativeTest37() - + @@ -1250,7 +1250,7 @@ public void NegativeTest38() - + @@ -1300,7 +1300,7 @@ public void NegativeTest39() - + @@ -1354,7 +1354,7 @@ public void NegativeTest40() - + @@ -1422,7 +1422,7 @@ public void NegativeTest42() - + @@ -1736,7 +1736,7 @@ public void NegativeTest52() - + @@ -1775,7 +1775,7 @@ public void NegativeTest53() - + @@ -2105,7 +2105,7 @@ public void NegativeTest62() - + @@ -2143,7 +2143,7 @@ public void NegativeTest63() - + @@ -2281,7 +2281,7 @@ public void NegativeTest66() - + @@ -2322,7 +2322,7 @@ public void NegativeTest67() - + @@ -2358,7 +2358,7 @@ public void NegativeTest68() - + @@ -2544,7 +2544,7 @@ public void NegativeTest73() - + @@ -2689,7 +2689,7 @@ public void NegativeTest76() - + @@ -5721,7 +5721,7 @@ public void NegativeTest136() - + diff --git a/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexParser.cs b/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexParser.cs index 629da0fe12c81..6fba6b2ddc8d5 100644 --- a/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexParser.cs +++ b/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexParser.cs @@ -2046,7 +2046,7 @@ private static void CheckQuantifierExpression(RegexExpressionNode? current, ref current.Kind == RegexKind.SimpleOptionsGrouping) { token = token.AddDiagnosticIfNone(new EmbeddedDiagnostic( - FeaturesResources.Quantifier_x_y_following_nothing, token.GetSpan())); + string.Format(FeaturesResources.Quantifier_0_following_nothing, token.VirtualChars.First()), token.GetSpan())); } else if (current is RegexQuantifierNode or RegexLazyQuantifierNode) { diff --git a/src/Features/Core/Portable/FeaturesResources.resx b/src/Features/Core/Portable/FeaturesResources.resx index 341a1e6399a03..4f7f32e991ae0 100644 --- a/src/Features/Core/Portable/FeaturesResources.resx +++ b/src/Features/Core/Portable/FeaturesResources.resx @@ -1799,8 +1799,8 @@ If the "H" format specifier is used without other custom format specifiers, it's Not enough )'s This is an error message shown to the user when they write an invalid Regular Expression. Example: (a - - Quantifier {x,y} following nothing + + Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf index 2331ae5b871c1..5f3edb151d07a 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf @@ -345,6 +345,11 @@ Ujistěte se, že specifikátor tt použijete pro jazyky, pro které je nezbytn Nejde navigovat k symbolu pod stříškou. + + Capture group numbers must be less than or equal to Int32.MaxValue + Capture group numbers must be less than or equal to Int32.MaxValue + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Capture number cannot be zero Počet zachytávání nemůže být nulový @@ -500,16 +505,6 @@ Ujistěte se, že specifikátor tt použijete pro jazyky, pro které je nezbytn Komentáře nejsou povolené - - Conditional alternation is missing a closing parenthesis after the group number - Conditional alternation is missing a closing parenthesis after the group number - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - - - Conditional alternation refers to an undefined group number {0} - Conditional alternation refers to an undefined group number {0} - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') - Configure {0} code style Nakonfigurovat styl kódu {0} @@ -1045,6 +1040,11 @@ Ujistěte se, že specifikátor tt použijete pro jazyky, pro které je nezbytn Nastavení metody jako asynchronní vyžaduje restartování aplikace, protože tuto akci modul runtime nepodporuje. + + malformed + malformed + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + Malformed \p{X} character escape Chybně formátovaná řídicí sekvence znaků \p{X} @@ -1325,11 +1325,6 @@ Ujistěte se, že specifikátor tt použijete pro jazyky, pro které je nezbytn Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * - - Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. - Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Query Dotaz @@ -1341,10 +1336,15 @@ Ujistěte se, že specifikátor tt použijete pro jazyky, pro které je nezbytn This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name '{0}' + Reference to undefined group name {0} Odkaz na nedefinovaný název skupiny {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') + + Reference to undefined group number {0} + Reference to undefined group number {0} + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') + All control characters. This includes the Cc, Cf, Cs, Co, and Cn categories. Všechny řídicí znaky. Patří k nim kategorie Cc, Cf, Cs, Co a Cn. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.de.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.de.xlf index f5c768b9f07b8..04710fb4df624 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.de.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.de.xlf @@ -345,6 +345,11 @@ Stellen Sie sicher, dass Sie den Bezeichner "tt" für Sprachen verwenden, für d Navigieren zu dem Symbol unter dem Caret nicht möglich. + + Capture group numbers must be less than or equal to Int32.MaxValue + Capture group numbers must be less than or equal to Int32.MaxValue + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Capture number cannot be zero Aufzeichnungsnummer darf nicht 0 (null) sein. @@ -500,16 +505,6 @@ Stellen Sie sicher, dass Sie den Bezeichner "tt" für Sprachen verwenden, für d Nicht zulässige Kommentare - - Conditional alternation is missing a closing parenthesis after the group number - Conditional alternation is missing a closing parenthesis after the group number - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - - - Conditional alternation refers to an undefined group number {0} - Conditional alternation refers to an undefined group number {0} - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') - Configure {0} code style Codeformat "{0}" konfigurieren @@ -1045,6 +1040,11 @@ Stellen Sie sicher, dass Sie den Bezeichner "tt" für Sprachen verwenden, für d Das Festlegen einer Methode als asynchron erfordert einen Neustart der Anwendung, da es von der Laufzeit nicht unterstützt wird. + + malformed + malformed + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + Malformed \p{X} character escape Falsch formatiertes \p{X}-Escapezeichen. @@ -1325,11 +1325,6 @@ Stellen Sie sicher, dass Sie den Bezeichner "tt" für Sprachen verwenden, für d Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * - - Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. - Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Query Abfrage @@ -1341,10 +1336,15 @@ Stellen Sie sicher, dass Sie den Bezeichner "tt" für Sprachen verwenden, für d This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name '{0}' + Reference to undefined group name {0} Verweis auf nicht definierten Gruppennamen {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') + + Reference to undefined group number {0} + Reference to undefined group number {0} + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') + All control characters. This includes the Cc, Cf, Cs, Co, and Cn categories. Alle Steuerzeichen. Hierzu gehören die Kategorien "Cc", "Cf", "Cs", "Co" und "Cn". diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.es.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.es.xlf index c4c56a0158d81..b8862499f8e22 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.es.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.es.xlf @@ -345,6 +345,11 @@ Asegúrese de usar el especificador "tt" para los idiomas para los que es necesa No se puede navegar al símbolo que hay debajo del símbolo de intercalación. + + Capture group numbers must be less than or equal to Int32.MaxValue + Capture group numbers must be less than or equal to Int32.MaxValue + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Capture number cannot be zero La captura de número no puede ser cero @@ -500,16 +505,6 @@ Asegúrese de usar el especificador "tt" para los idiomas para los que es necesa Comentarios no permitidos - - Conditional alternation is missing a closing parenthesis after the group number - Conditional alternation is missing a closing parenthesis after the group number - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - - - Conditional alternation refers to an undefined group number {0} - Conditional alternation refers to an undefined group number {0} - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') - Configure {0} code style Configurar el estilo de código de {0} @@ -1045,6 +1040,11 @@ Asegúrese de usar el especificador "tt" para los idiomas para los que es necesa Para convertir un método en asincrónico, es necesario reiniciar la aplicación porque no es compatible con el tiempo de ejecución. + + malformed + malformed + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + Malformed \p{X} character escape Escape de carácter incorrecto \p{X} @@ -1325,11 +1325,6 @@ Asegúrese de usar el especificador "tt" para los idiomas para los que es necesa Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * - - Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. - Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Query Consulta @@ -1341,10 +1336,15 @@ Asegúrese de usar el especificador "tt" para los idiomas para los que es necesa This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name '{0}' + Reference to undefined group name {0} Referencia a nombre de grupo no definido {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') + + Reference to undefined group number {0} + Reference to undefined group number {0} + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') + All control characters. This includes the Cc, Cf, Cs, Co, and Cn categories. Todos los caracteres de control. Esto incluye las categorías Cc, Cf, Cs, Co y Cn. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf index 2dbb723ae82f8..49f24f568f671 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf @@ -345,6 +345,11 @@ Veillez à utiliser le spécificateur "tt" pour les langues où il est nécessai Impossible de naviguer jusqu'au symbole sous le caret. + + Capture group numbers must be less than or equal to Int32.MaxValue + Capture group numbers must be less than or equal to Int32.MaxValue + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Capture number cannot be zero Le nombre de captures ne peut pas être égal à zéro @@ -500,16 +505,6 @@ Veillez à utiliser le spécificateur "tt" pour les langues où il est nécessai Commentaires non autorisés - - Conditional alternation is missing a closing parenthesis after the group number - Conditional alternation is missing a closing parenthesis after the group number - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - - - Conditional alternation refers to an undefined group number {0} - Conditional alternation refers to an undefined group number {0} - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') - Configure {0} code style Configurer le style de code {0} @@ -1045,6 +1040,11 @@ Veillez à utiliser le spécificateur "tt" pour les langues où il est nécessai La création d’une méthode asynchrone nécessite le redémarrage de l’application, car elle n’est pas prise en charge par le runtime. + + malformed + malformed + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + Malformed \p{X} character escape Caractère d'échappement incorrect \p{X} @@ -1325,11 +1325,6 @@ Veillez à utiliser le spécificateur "tt" pour les langues où il est nécessai Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * - - Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. - Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Query Requête @@ -1341,10 +1336,15 @@ Veillez à utiliser le spécificateur "tt" pour les langues où il est nécessai This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name '{0}' + Reference to undefined group name {0} Référence au nom de groupe indéfini {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') + + Reference to undefined group number {0} + Reference to undefined group number {0} + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') + All control characters. This includes the Cc, Cf, Cs, Co, and Cn categories. Tous les caractères de contrôle. Cela inclut les catégories Cc, Cf, Cs, Co et Cn. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.it.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.it.xlf index 93e776ac076dd..9d420b10864a2 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.it.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.it.xlf @@ -345,6 +345,11 @@ Assicurarsi di usare l'identificatore "tt" per le lingue per le quali è necessa Non è possibile passare al simbolo sotto il punto di inserimento. + + Capture group numbers must be less than or equal to Int32.MaxValue + Capture group numbers must be less than or equal to Int32.MaxValue + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Capture number cannot be zero Il numero di acquisizioni non può essere zero @@ -500,16 +505,6 @@ Assicurarsi di usare l'identificatore "tt" per le lingue per le quali è necessa Commenti non consentiti - - Conditional alternation is missing a closing parenthesis after the group number - Conditional alternation is missing a closing parenthesis after the group number - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - - - Conditional alternation refers to an undefined group number {0} - Conditional alternation refers to an undefined group number {0} - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') - Configure {0} code style Configura lo stile del codice di {0} @@ -1045,6 +1040,11 @@ Assicurarsi di usare l'identificatore "tt" per le lingue per le quali è necessa Per rendere un metodo asincrono, è necessario riavviare l'applicazione perché non è supportata dal runtime. + + malformed + malformed + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + Malformed \p{X} character escape Sequenza di caratteri di escape \\p{X} non valida @@ -1325,11 +1325,6 @@ Assicurarsi di usare l'identificatore "tt" per le lingue per le quali è necessa Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * - - Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. - Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Query Query @@ -1341,10 +1336,15 @@ Assicurarsi di usare l'identificatore "tt" per le lingue per le quali è necessa This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name '{0}' + Reference to undefined group name {0} Riferimento a nome di gruppo indefinito: {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') + + Reference to undefined group number {0} + Reference to undefined group number {0} + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') + All control characters. This includes the Cc, Cf, Cs, Co, and Cn categories. Tutti i caratteri di controllo. Sono incluse le categorie Cc, Cf, Cs, Co e Cn. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf index 35038fe9f8e3f..0d321e360450d 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf @@ -345,6 +345,11 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma カレットの下のシンボルに移動できません。 + + Capture group numbers must be less than or equal to Int32.MaxValue + Capture group numbers must be less than or equal to Int32.MaxValue + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Capture number cannot be zero キャプチャ番号を 0 にすることはできません @@ -500,16 +505,6 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma コメントは使用できません - - Conditional alternation is missing a closing parenthesis after the group number - Conditional alternation is missing a closing parenthesis after the group number - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - - - Conditional alternation refers to an undefined group number {0} - Conditional alternation refers to an undefined group number {0} - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') - Configure {0} code style {0} コード スタイルの構成 @@ -1045,6 +1040,11 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma ランタイムでサポートされていないため、メソッドを非同期にするには、アプリケーションを再起動する必要があります。 + + malformed + malformed + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + Malformed \p{X} character escape 間違った形式の \p{X} エスケープ文字です @@ -1325,11 +1325,6 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * - - Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. - Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Query クエリ @@ -1341,10 +1336,15 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name '{0}' + Reference to undefined group name {0} 未定義のグループ名 {0} への参照 This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') + + Reference to undefined group number {0} + Reference to undefined group number {0} + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') + All control characters. This includes the Cc, Cf, Cs, Co, and Cn categories. すべての制御文字。これには、Cc、Cf、Cs、Co、Cn カテゴリが含まれます。 diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf index eb5704c62b14f..4fe19c4b24fe8 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf @@ -345,6 +345,11 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma 캐럿에서 기호를 탐색할 수 없습니다. + + Capture group numbers must be less than or equal to Int32.MaxValue + Capture group numbers must be less than or equal to Int32.MaxValue + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Capture number cannot be zero 캡처 번호는 0일 수 없습니다. @@ -500,16 +505,6 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma 주석이 허용되지 않습니다. - - Conditional alternation is missing a closing parenthesis after the group number - Conditional alternation is missing a closing parenthesis after the group number - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - - - Conditional alternation refers to an undefined group number {0} - Conditional alternation refers to an undefined group number {0} - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') - Configure {0} code style {0} 코드 스타일 구성 @@ -1045,6 +1040,11 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma 런타임에서 지원하지 않기 때문에 메서드를 비동기화하려면 애플리케이션을 다시 시작해야 합니다. + + malformed + malformed + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + Malformed \p{X} character escape 형식이 잘못된 \p{X} 문자 이스케이프 @@ -1325,11 +1325,6 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * - - Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. - Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Query 쿼리 @@ -1341,10 +1336,15 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name '{0}' + Reference to undefined group name {0} 정의되지 않은 그룹 이름 {0}에 대한 참조입니다. This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') + + Reference to undefined group number {0} + Reference to undefined group number {0} + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') + All control characters. This includes the Cc, Cf, Cs, Co, and Cn categories. 모든 제어 문자입니다. Cc, Cf, Cs, Co 및 Cn 범주가 포함됩니다. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf index e6c0a3abec2f9..56921a921159f 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf @@ -345,6 +345,11 @@ Pamiętaj, aby nie używać specyfikatora „tt” dla wszystkich języków, w k Nie można przejść do symbolu pod karetką. + + Capture group numbers must be less than or equal to Int32.MaxValue + Capture group numbers must be less than or equal to Int32.MaxValue + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Capture number cannot be zero Numer przechwytywania nie może być równy zeru @@ -500,16 +505,6 @@ Pamiętaj, aby nie używać specyfikatora „tt” dla wszystkich języków, w k Komentarze są niedozwolone - - Conditional alternation is missing a closing parenthesis after the group number - Conditional alternation is missing a closing parenthesis after the group number - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - - - Conditional alternation refers to an undefined group number {0} - Conditional alternation refers to an undefined group number {0} - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') - Configure {0} code style Konfiguruj styl kodu {0} @@ -1045,6 +1040,11 @@ Pamiętaj, aby nie używać specyfikatora „tt” dla wszystkich języków, w k Ustanawianie metody asynchroniczną wymaga ponownego uruchomienia aplikacji, ponieważ nie jest to obsługiwane przez środowisko uruchomieniowe. + + malformed + malformed + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + Malformed \p{X} character escape Źle sformułowana sekwencja ucieczki znaku \p{X} @@ -1325,11 +1325,6 @@ Pamiętaj, aby nie używać specyfikatora „tt” dla wszystkich języków, w k Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * - - Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. - Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Query Zapytanie @@ -1341,10 +1336,15 @@ Pamiętaj, aby nie używać specyfikatora „tt” dla wszystkich języków, w k This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name '{0}' + Reference to undefined group name {0} Odwołanie do niezdefiniowanej nazwy grupy {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') + + Reference to undefined group number {0} + Reference to undefined group number {0} + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') + All control characters. This includes the Cc, Cf, Cs, Co, and Cn categories. Wszystkie znaki kontrolne. Obejmuje to kategorie Cc, Cf, Cs, Co i Cn. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf index 5440fe5a9af0a..ca1df4cfb74e4 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf @@ -345,6 +345,11 @@ Verifique se o especificador "tt" foi usado para idiomas para os quais é necess Não é possível navegar para o símbolo sob o cursor. + + Capture group numbers must be less than or equal to Int32.MaxValue + Capture group numbers must be less than or equal to Int32.MaxValue + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Capture number cannot be zero O número da captura não pode ser zero @@ -500,16 +505,6 @@ Verifique se o especificador "tt" foi usado para idiomas para os quais é necess Comentários não permitidos - - Conditional alternation is missing a closing parenthesis after the group number - Conditional alternation is missing a closing parenthesis after the group number - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - - - Conditional alternation refers to an undefined group number {0} - Conditional alternation refers to an undefined group number {0} - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') - Configure {0} code style Configurar estilo de código de {0} @@ -1045,6 +1040,11 @@ Verifique se o especificador "tt" foi usado para idiomas para os quais é necess Tornar um método assíncrono requer reiniciar o aplicativo porque não há suporte para o tempo de execução. + + malformed + malformed + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + Malformed \p{X} character escape Escape de caractere malformado \p{X} @@ -1325,11 +1325,6 @@ Verifique se o especificador "tt" foi usado para idiomas para os quais é necess Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * - - Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. - Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Query Consulta @@ -1341,10 +1336,15 @@ Verifique se o especificador "tt" foi usado para idiomas para os quais é necess This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name '{0}' + Reference to undefined group name {0} Referência ao nome do grupo indefinido {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') + + Reference to undefined group number {0} + Reference to undefined group number {0} + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') + All control characters. This includes the Cc, Cf, Cs, Co, and Cn categories. Todos os caracteres de controle. Isso inclui as categorias Cc, Cf, Cs, Co e Cn. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf index 062e2496367ad..b51b482cc99c0 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf @@ -345,6 +345,11 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma Не удается перейти к символу, на котором находится курсор. + + Capture group numbers must be less than or equal to Int32.MaxValue + Capture group numbers must be less than or equal to Int32.MaxValue + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Capture number cannot be zero Номер записи не может быть равен нулю @@ -500,16 +505,6 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma Комментарии не разрешены - - Conditional alternation is missing a closing parenthesis after the group number - Conditional alternation is missing a closing parenthesis after the group number - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - - - Conditional alternation refers to an undefined group number {0} - Conditional alternation refers to an undefined group number {0} - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') - Configure {0} code style Настройка стиля кода {0} @@ -1045,6 +1040,11 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma Чтобы сделать метод асинхронным, требуется перезапустить приложение, так как это не поддерживается средой выполнения. + + malformed + malformed + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + Malformed \p{X} character escape Неправильная escape-последовательность \p{X} @@ -1325,11 +1325,6 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * - - Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. - Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Query Запрос @@ -1341,10 +1336,15 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name '{0}' + Reference to undefined group name {0} Ссылка на неопределенное имя группы {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') + + Reference to undefined group number {0} + Reference to undefined group number {0} + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') + All control characters. This includes the Cc, Cf, Cs, Co, and Cn categories. Все управляющие символы. Сюда входят категории Cc, Cf, Cs, Co и Cn. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf index 54840de14ac3b..50217c89fffbc 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf @@ -345,6 +345,11 @@ AM ve PM arasındaki farkın korunmasının gerekli olduğu diller için "tt" be Giriş işareti altında sembole gidilemiyor. + + Capture group numbers must be less than or equal to Int32.MaxValue + Capture group numbers must be less than or equal to Int32.MaxValue + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Capture number cannot be zero Yakalama numarası sıfır olamaz @@ -500,16 +505,6 @@ AM ve PM arasındaki farkın korunmasının gerekli olduğu diller için "tt" be Açıklamalara izin verilmiyor - - Conditional alternation is missing a closing parenthesis after the group number - Conditional alternation is missing a closing parenthesis after the group number - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - - - Conditional alternation refers to an undefined group number {0} - Conditional alternation refers to an undefined group number {0} - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') - Configure {0} code style {0} kod stilini yapılandır @@ -1045,6 +1040,11 @@ AM ve PM arasındaki farkın korunmasının gerekli olduğu diller için "tt" be Bir metodu zaman uyumsuz yapmak çalışma zamanı tarafından desteklenmediğinden uygulamanın yeniden başlatılmasını gerektirir. + + malformed + malformed + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + Malformed \p{X} character escape Hatalı biçimlendirilmiş \p{X} karakter kaçış @@ -1325,11 +1325,6 @@ AM ve PM arasındaki farkın korunmasının gerekli olduğu diller için "tt" be Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * - - Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. - Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Query Sorgu @@ -1341,10 +1336,15 @@ AM ve PM arasındaki farkın korunmasının gerekli olduğu diller için "tt" be This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name '{0}' + Reference to undefined group name {0} {0} tanımsız grup adı referansı This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') + + Reference to undefined group number {0} + Reference to undefined group number {0} + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') + All control characters. This includes the Cc, Cf, Cs, Co, and Cn categories. Tüm denetim karakterleri. Buna Cc, Cf, Cs, Co ve Cn kategorileri dahildir. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf index ded461d1dc97a..9907b46dc9624 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf @@ -345,6 +345,11 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma 无法导航到插入点下面的符号。 + + Capture group numbers must be less than or equal to Int32.MaxValue + Capture group numbers must be less than or equal to Int32.MaxValue + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Capture number cannot be zero 捕获编号不能为零 @@ -500,16 +505,6 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma 不允许注释 - - Conditional alternation is missing a closing parenthesis after the group number - Conditional alternation is missing a closing parenthesis after the group number - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - - - Conditional alternation refers to an undefined group number {0} - Conditional alternation refers to an undefined group number {0} - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') - Configure {0} code style 配置 {0} 代码样式 @@ -1045,6 +1040,11 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma 使方法异步需要重启应用程序,因为运行时不支持此操作。 + + malformed + malformed + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + Malformed \p{X} character escape \p{X} 字符转义格式错误 @@ -1325,11 +1325,6 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * - - Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. - Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Query 查询 @@ -1341,10 +1336,15 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name '{0}' + Reference to undefined group name {0} 对未定义的组名 {0} 的引用 This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') + + Reference to undefined group number {0} + Reference to undefined group number {0} + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') + All control characters. This includes the Cc, Cf, Cs, Co, and Cn categories. 所有控制字符。这包括 Cc、Cf、Cs、Co 和 Cn 类别。 diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf index d6a2c29768ce0..79bf8c1fcec5a 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf @@ -345,6 +345,11 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma 無法巡覽至插入號下的符號。 + + Capture group numbers must be less than or equal to Int32.MaxValue + Capture group numbers must be less than or equal to Int32.MaxValue + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Capture number cannot be zero 擷取號碼不可為零 @@ -500,16 +505,6 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma 不允許的註解 - - Conditional alternation is missing a closing parenthesis after the group number - Conditional alternation is missing a closing parenthesis after the group number - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - - - Conditional alternation refers to an undefined group number {0} - Conditional alternation refers to an undefined group number {0} - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') - Configure {0} code style 設定 {0} 程式碼樣式 @@ -1045,6 +1040,11 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma 因為執行時間不支援,所以製作非同步方法需要重新開機應用程式。 + + malformed + malformed + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + Malformed \p{X} character escape \p{X} 字元逸出語式錯誤 @@ -1325,11 +1325,6 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * - - Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. - Quantifier and capture group numbers must be less than or equal to Int32.MaxValue. - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Query 查詢 @@ -1341,10 +1336,15 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name '{0}' + Reference to undefined group name {0} 對未定義群組名稱 {0} 的參考 This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') + + Reference to undefined group number {0} + Reference to undefined group number {0} + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<-1>). Here, {0} will be the number of the undefined group ('1') + All control characters. This includes the Cc, Cf, Cs, Co, and Cn categories. 所有控制字元。這包括了 Cc、Cf、Cs、Co 和 Cn 分類。 From 577b20f41d660158855a98f13616ecc34fa0541e Mon Sep 17 00:00:00 2001 From: Cyrus Najmabadi Date: Wed, 4 Dec 2024 10:39:39 -0800 Subject: [PATCH 05/15] Fix loc string --- src/Features/Core/Portable/FeaturesResources.resx | 2 +- src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf | 2 +- src/Features/Core/Portable/xlf/FeaturesResources.de.xlf | 2 +- src/Features/Core/Portable/xlf/FeaturesResources.es.xlf | 2 +- src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf | 2 +- src/Features/Core/Portable/xlf/FeaturesResources.it.xlf | 2 +- src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf | 2 +- src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf | 2 +- src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf | 2 +- src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf | 2 +- src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf | 2 +- src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf | 2 +- src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf | 2 +- src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/Features/Core/Portable/FeaturesResources.resx b/src/Features/Core/Portable/FeaturesResources.resx index 4f7f32e991ae0..3ab6c6d24b5c2 100644 --- a/src/Features/Core/Portable/FeaturesResources.resx +++ b/src/Features/Core/Portable/FeaturesResources.resx @@ -1808,7 +1808,7 @@ If the "H" format specifier is used without other custom format specifiers, it's This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name {0} + Reference to undefined group name '{0}' This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf index 5f3edb151d07a..ca591abbda798 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf @@ -1336,7 +1336,7 @@ Ujistěte se, že specifikátor tt použijete pro jazyky, pro které je nezbytn This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name {0} + Reference to undefined group name '{0}' Odkaz na nedefinovaný název skupiny {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.de.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.de.xlf index 04710fb4df624..d3254e9ef7d3c 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.de.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.de.xlf @@ -1336,7 +1336,7 @@ Stellen Sie sicher, dass Sie den Bezeichner "tt" für Sprachen verwenden, für d This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name {0} + Reference to undefined group name '{0}' Verweis auf nicht definierten Gruppennamen {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.es.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.es.xlf index b8862499f8e22..7b118157d09e2 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.es.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.es.xlf @@ -1336,7 +1336,7 @@ Asegúrese de usar el especificador "tt" para los idiomas para los que es necesa This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name {0} + Reference to undefined group name '{0}' Referencia a nombre de grupo no definido {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf index 49f24f568f671..b2a0689cec93b 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf @@ -1336,7 +1336,7 @@ Veillez à utiliser le spécificateur "tt" pour les langues où il est nécessai This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name {0} + Reference to undefined group name '{0}' Référence au nom de groupe indéfini {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.it.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.it.xlf index 9d420b10864a2..2a5bb8a3d5bae 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.it.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.it.xlf @@ -1336,7 +1336,7 @@ Assicurarsi di usare l'identificatore "tt" per le lingue per le quali è necessa This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name {0} + Reference to undefined group name '{0}' Riferimento a nome di gruppo indefinito: {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf index 0d321e360450d..f08589a3974e6 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf @@ -1336,7 +1336,7 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name {0} + Reference to undefined group name '{0}' 未定義のグループ名 {0} への参照 This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf index 4fe19c4b24fe8..a2563538002d0 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf @@ -1336,7 +1336,7 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name {0} + Reference to undefined group name '{0}' 정의되지 않은 그룹 이름 {0}에 대한 참조입니다. This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf index 56921a921159f..7188e4de46013 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf @@ -1336,7 +1336,7 @@ Pamiętaj, aby nie używać specyfikatora „tt” dla wszystkich języków, w k This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name {0} + Reference to undefined group name '{0}' Odwołanie do niezdefiniowanej nazwy grupy {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf index ca1df4cfb74e4..f10f06d7ed660 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf @@ -1336,7 +1336,7 @@ Verifique se o especificador "tt" foi usado para idiomas para os quais é necess This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name {0} + Reference to undefined group name '{0}' Referência ao nome do grupo indefinido {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf index b51b482cc99c0..64279c46bdc81 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf @@ -1336,7 +1336,7 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name {0} + Reference to undefined group name '{0}' Ссылка на неопределенное имя группы {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf index 50217c89fffbc..e307be1d380f9 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf @@ -1336,7 +1336,7 @@ AM ve PM arasındaki farkın korunmasının gerekli olduğu diller için "tt" be This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name {0} + Reference to undefined group name '{0}' {0} tanımsız grup adı referansı This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf index 9907b46dc9624..9ef42a15efff2 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf @@ -1336,7 +1336,7 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name {0} + Reference to undefined group name '{0}' 对未定义的组名 {0} 的引用 This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf index 79bf8c1fcec5a..256c844581500 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf @@ -1336,7 +1336,7 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(1)) - Reference to undefined group name {0} + Reference to undefined group name '{0}' 對未定義群組名稱 {0} 的參考 This is an error message shown to the user when they write an invalid Regular Expression. Example: \k<a>. Here, {0} will be the name of the undefined group ('a') From b9ffc669a8e9b9f0f98ffffb06d623038878362e Mon Sep 17 00:00:00 2001 From: Cyrus Najmabadi Date: Wed, 4 Dec 2024 10:48:04 -0800 Subject: [PATCH 06/15] Fix loc string --- src/Features/Core/Portable/FeaturesResources.resx | 2 +- src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf | 4 ++-- src/Features/Core/Portable/xlf/FeaturesResources.de.xlf | 4 ++-- src/Features/Core/Portable/xlf/FeaturesResources.es.xlf | 4 ++-- src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf | 4 ++-- src/Features/Core/Portable/xlf/FeaturesResources.it.xlf | 4 ++-- src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf | 4 ++-- src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf | 4 ++-- src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf | 4 ++-- src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf | 4 ++-- src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf | 4 ++-- src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf | 4 ++-- src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf | 4 ++-- src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf | 4 ++-- 14 files changed, 27 insertions(+), 27 deletions(-) diff --git a/src/Features/Core/Portable/FeaturesResources.resx b/src/Features/Core/Portable/FeaturesResources.resx index 3ab6c6d24b5c2..e634575bbad14 100644 --- a/src/Features/Core/Portable/FeaturesResources.resx +++ b/src/Features/Core/Portable/FeaturesResources.resx @@ -1792,7 +1792,7 @@ If the "H" format specifier is used without other custom format specifiers, it's This is an error message shown to the user when they write an invalid Regular Expression. Example: \c - Nested quantifier {0} + Nested quantifier '{0}' This is an error message shown to the user when they write an invalid Regular Expression. Example: a**. In this case {0} will be '*', the extra unnecessary quantifier. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf index ca591abbda798..9bf70c934985c 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf @@ -1226,8 +1226,8 @@ Ujistěte se, že specifikátor tt použijete pro jazyky, pro které je nezbytn - Nested quantifier {0} - Vnořený kvantifikátor {0} + Nested quantifier '{0}' + Vnořený kvantifikátor {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: a**. In this case {0} will be '*', the extra unnecessary quantifier. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.de.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.de.xlf index d3254e9ef7d3c..599478cf493fb 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.de.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.de.xlf @@ -1226,8 +1226,8 @@ Stellen Sie sicher, dass Sie den Bezeichner "tt" für Sprachen verwenden, für d - Nested quantifier {0} - Geschachtelter Quantifizierer {0}. + Nested quantifier '{0}' + Geschachtelter Quantifizierer {0}. This is an error message shown to the user when they write an invalid Regular Expression. Example: a**. In this case {0} will be '*', the extra unnecessary quantifier. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.es.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.es.xlf index 7b118157d09e2..d0c732c3fb548 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.es.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.es.xlf @@ -1226,8 +1226,8 @@ Asegúrese de usar el especificador "tt" para los idiomas para los que es necesa - Nested quantifier {0} - Cuantificador anidado {0} + Nested quantifier '{0}' + Cuantificador anidado {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: a**. In this case {0} will be '*', the extra unnecessary quantifier. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf index b2a0689cec93b..d7d37dd446766 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf @@ -1226,8 +1226,8 @@ Veillez à utiliser le spécificateur "tt" pour les langues où il est nécessai - Nested quantifier {0} - Quantificateur imbriqué {0} + Nested quantifier '{0}' + Quantificateur imbriqué {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: a**. In this case {0} will be '*', the extra unnecessary quantifier. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.it.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.it.xlf index 2a5bb8a3d5bae..44f830ea981bd 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.it.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.it.xlf @@ -1226,8 +1226,8 @@ Assicurarsi di usare l'identificatore "tt" per le lingue per le quali è necessa - Nested quantifier {0} - Quantificatore nidificato {0} + Nested quantifier '{0}' + Quantificatore nidificato {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: a**. In this case {0} will be '*', the extra unnecessary quantifier. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf index f08589a3974e6..84d715581196e 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf @@ -1226,8 +1226,8 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma - Nested quantifier {0} - 入れ子になった量指定子 {0} + Nested quantifier '{0}' + 入れ子になった量指定子 {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: a**. In this case {0} will be '*', the extra unnecessary quantifier. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf index a2563538002d0..0140cf3b2e31a 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf @@ -1226,8 +1226,8 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma - Nested quantifier {0} - 중첩 수량자 {0}입니다. + Nested quantifier '{0}' + 중첩 수량자 {0}입니다. This is an error message shown to the user when they write an invalid Regular Expression. Example: a**. In this case {0} will be '*', the extra unnecessary quantifier. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf index 7188e4de46013..3ca6aa22c1de0 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf @@ -1226,8 +1226,8 @@ Pamiętaj, aby nie używać specyfikatora „tt” dla wszystkich języków, w k - Nested quantifier {0} - Zagnieżdżony kwantyfikator {0} + Nested quantifier '{0}' + Zagnieżdżony kwantyfikator {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: a**. In this case {0} will be '*', the extra unnecessary quantifier. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf index f10f06d7ed660..651358d737491 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf @@ -1226,8 +1226,8 @@ Verifique se o especificador "tt" foi usado para idiomas para os quais é necess - Nested quantifier {0} - Quantificador aninhado {0} + Nested quantifier '{0}' + Quantificador aninhado {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: a**. In this case {0} will be '*', the extra unnecessary quantifier. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf index 64279c46bdc81..1089221b5e681 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf @@ -1226,8 +1226,8 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma - Nested quantifier {0} - Вложенный квантификатор {0} + Nested quantifier '{0}' + Вложенный квантификатор {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: a**. In this case {0} will be '*', the extra unnecessary quantifier. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf index e307be1d380f9..5143fb3a2357d 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf @@ -1226,8 +1226,8 @@ AM ve PM arasındaki farkın korunmasının gerekli olduğu diller için "tt" be - Nested quantifier {0} - İç içe geçmiş niceleyici {0} + Nested quantifier '{0}' + İç içe geçmiş niceleyici {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: a**. In this case {0} will be '*', the extra unnecessary quantifier. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf index 9ef42a15efff2..08b47dc147090 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf @@ -1226,8 +1226,8 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma - Nested quantifier {0} - 嵌套限定符 {0} + Nested quantifier '{0}' + 嵌套限定符 {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: a**. In this case {0} will be '*', the extra unnecessary quantifier. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf index 256c844581500..14cbd2ec2a66d 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf @@ -1226,8 +1226,8 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma - Nested quantifier {0} - 巢狀數量詞 {0} + Nested quantifier '{0}' + 巢狀數量詞 {0} This is an error message shown to the user when they write an invalid Regular Expression. Example: a**. In this case {0} will be '*', the extra unnecessary quantifier. From 4223c9ae156156543d664d0dc3b631404efd17a1 Mon Sep 17 00:00:00 2001 From: Cyrus Najmabadi Date: Wed, 4 Dec 2024 10:50:12 -0800 Subject: [PATCH 07/15] Fix loc string --- .../CSharpRegexParserTests_BasicTests.cs | 32 +++++++++---------- ...arpRegexParserTests_DotnetNegativeTests.cs | 10 +++--- .../CSharpRegexParserTests_RealWorld.cs | 2 +- .../RegularExpressions/RegexLexer.cs | 2 +- .../Core/Portable/FeaturesResources.resx | 4 +-- .../Portable/xlf/FeaturesResources.cs.xlf | 6 ++-- .../Portable/xlf/FeaturesResources.de.xlf | 6 ++-- .../Portable/xlf/FeaturesResources.es.xlf | 6 ++-- .../Portable/xlf/FeaturesResources.fr.xlf | 6 ++-- .../Portable/xlf/FeaturesResources.it.xlf | 6 ++-- .../Portable/xlf/FeaturesResources.ja.xlf | 6 ++-- .../Portable/xlf/FeaturesResources.ko.xlf | 6 ++-- .../Portable/xlf/FeaturesResources.pl.xlf | 6 ++-- .../Portable/xlf/FeaturesResources.pt-BR.xlf | 6 ++-- .../Portable/xlf/FeaturesResources.ru.xlf | 6 ++-- .../Portable/xlf/FeaturesResources.tr.xlf | 6 ++-- .../xlf/FeaturesResources.zh-Hans.xlf | 6 ++-- .../xlf/FeaturesResources.zh-Hant.xlf | 6 ++-- 18 files changed, 64 insertions(+), 64 deletions(-) diff --git a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs index 9e56052709b30..9b277580e6520 100644 --- a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs +++ b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs @@ -3722,7 +3722,7 @@ public void TestHexEscape1() - + @@ -3752,7 +3752,7 @@ public void TestHexEscape2() - + @@ -3779,7 +3779,7 @@ public void TestHexEscape3() - + @@ -3809,7 +3809,7 @@ public void TestHexEscape4() - + @@ -4016,7 +4016,7 @@ public void TestHexEscape12() - + @@ -4072,7 +4072,7 @@ public void TestUnicodeEscape1() - + @@ -4099,7 +4099,7 @@ public void TestUnicodeEscape2() - + @@ -4126,7 +4126,7 @@ public void TestUnicodeEscape3() - + @@ -4153,7 +4153,7 @@ public void TestUnicodeEscape4() - + @@ -4234,7 +4234,7 @@ public void TestUnicodeEscape7() - + @@ -4264,7 +4264,7 @@ public void TestUnicodeEscape8() - + @@ -4294,7 +4294,7 @@ public void TestUnicodeEscape9() - + @@ -14312,8 +14312,8 @@ public void TestCharacterClassRange19() - - + + @@ -14354,8 +14354,8 @@ public void TestCharacterClassRange20() - - + + diff --git a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_DotnetNegativeTests.cs b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_DotnetNegativeTests.cs index 8fbc256a08ba0..00f3bc72dffb3 100644 --- a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_DotnetNegativeTests.cs +++ b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_DotnetNegativeTests.cs @@ -2447,7 +2447,7 @@ public void NegativeTest71() - + @@ -4779,7 +4779,7 @@ public void NegativeTest117() - + @@ -4806,7 +4806,7 @@ public void NegativeTest118() - + @@ -4833,7 +4833,7 @@ public void NegativeTest119() - + @@ -4860,7 +4860,7 @@ public void NegativeTest120() - + diff --git a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_RealWorld.cs b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_RealWorld.cs index 8273ba798f170..f113fa03d36e6 100644 --- a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_RealWorld.cs +++ b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_RealWorld.cs @@ -37,7 +37,7 @@ public void TestRealWorldCases(string pattern, int options) public static IEnumerable GetRealWorldCases() { using var stream = typeof(CSharpRegexParserTests).Assembly.GetManifestResourceStream("Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.EmbeddedLanguages.RegularExpressions.Regex_RealWorldPatterns.json"); - using var streamReader = new StreamReader(stream); + using var streamReader = new StreamReader(stream!); using var textReader = new JsonTextReader(streamReader); foreach (var obj in JArray.Load(textReader)) diff --git a/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexLexer.cs b/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexLexer.cs index 397fa4abc0efc..797758d4a3907 100644 --- a/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexLexer.cs +++ b/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexLexer.cs @@ -395,7 +395,7 @@ public RegexToken ScanHexCharacters(int count) if (length != count) { result = result.AddDiagnosticIfNone(new EmbeddedDiagnostic( - FeaturesResources.Insufficient_hexadecimal_digits, + FeaturesResources.Insufficient_or_invalid_hexadecimal_digits, GetTextSpan(beforeSlash, Position))); } diff --git a/src/Features/Core/Portable/FeaturesResources.resx b/src/Features/Core/Portable/FeaturesResources.resx index e634575bbad14..f900543ffeddc 100644 --- a/src/Features/Core/Portable/FeaturesResources.resx +++ b/src/Features/Core/Portable/FeaturesResources.resx @@ -1767,8 +1767,8 @@ If the "H" format specifier is used without other custom format specifiers, it's Incomplete \p{X} character escape This is an error message shown to the user when they write an invalid Regular Expression. Example: \p{ Cc } - - Insufficient hexadecimal digits + + Insufficient or invalid hexadecimal digits This is an error message shown to the user when they write an invalid Regular Expression. Example: \x diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf index 9bf70c934985c..2916cf6350ee8 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf @@ -940,9 +940,9 @@ Ujistěte se, že specifikátor tt použijete pro jazyky, pro které je nezbytn Dočasná vložená proměnná - - Insufficient hexadecimal digits - Nedostatek šestnáctkových číslic + + Insufficient or invalid hexadecimal digits + Insufficient or invalid hexadecimal digits This is an error message shown to the user when they write an invalid Regular Expression. Example: \x diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.de.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.de.xlf index 599478cf493fb..8292c97fe12c6 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.de.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.de.xlf @@ -940,9 +940,9 @@ Stellen Sie sicher, dass Sie den Bezeichner "tt" für Sprachen verwenden, für d Inline temporär variabel - - Insufficient hexadecimal digits - Nicht genügend Hexadezimalziffern. + + Insufficient or invalid hexadecimal digits + Insufficient or invalid hexadecimal digits This is an error message shown to the user when they write an invalid Regular Expression. Example: \x diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.es.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.es.xlf index d0c732c3fb548..b4b67a3cc7313 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.es.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.es.xlf @@ -940,9 +940,9 @@ Asegúrese de usar el especificador "tt" para los idiomas para los que es necesa Variable temporal en línea - - Insufficient hexadecimal digits - Insuficientes dígitos hexadecimales + + Insufficient or invalid hexadecimal digits + Insufficient or invalid hexadecimal digits This is an error message shown to the user when they write an invalid Regular Expression. Example: \x diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf index d7d37dd446766..be9e3c10583c2 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf @@ -940,9 +940,9 @@ Veillez à utiliser le spécificateur "tt" pour les langues où il est nécessai Variable temporaire inline - - Insufficient hexadecimal digits - Chiffres hexadécimaux insuffisants + + Insufficient or invalid hexadecimal digits + Insufficient or invalid hexadecimal digits This is an error message shown to the user when they write an invalid Regular Expression. Example: \x diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.it.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.it.xlf index 44f830ea981bd..82933a7bc74a9 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.it.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.it.xlf @@ -940,9 +940,9 @@ Assicurarsi di usare l'identificatore "tt" per le lingue per le quali è necessa Variabile temporanea inline - - Insufficient hexadecimal digits - Cifre esadecimali insufficienti + + Insufficient or invalid hexadecimal digits + Insufficient or invalid hexadecimal digits This is an error message shown to the user when they write an invalid Regular Expression. Example: \x diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf index 84d715581196e..2bed604c2fd5a 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf @@ -940,9 +940,9 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma インラインの一時変数 - - Insufficient hexadecimal digits - 16 進数の数字が正しくありません + + Insufficient or invalid hexadecimal digits + Insufficient or invalid hexadecimal digits This is an error message shown to the user when they write an invalid Regular Expression. Example: \x diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf index 0140cf3b2e31a..7f6f93b80fb5b 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf @@ -940,9 +940,9 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma 인라인 임시 변수 - - Insufficient hexadecimal digits - 16진수가 부족합니다. + + Insufficient or invalid hexadecimal digits + Insufficient or invalid hexadecimal digits This is an error message shown to the user when they write an invalid Regular Expression. Example: \x diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf index 3ca6aa22c1de0..cdaa5a833eaac 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf @@ -940,9 +940,9 @@ Pamiętaj, aby nie używać specyfikatora „tt” dla wszystkich języków, w k Wstawiona zmienna tymczasowa - - Insufficient hexadecimal digits - Zbyt mało cyfr szesnastkowych + + Insufficient or invalid hexadecimal digits + Insufficient or invalid hexadecimal digits This is an error message shown to the user when they write an invalid Regular Expression. Example: \x diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf index 651358d737491..ae94d86cca6a5 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf @@ -940,9 +940,9 @@ Verifique se o especificador "tt" foi usado para idiomas para os quais é necess Variável temporária embutida - - Insufficient hexadecimal digits - Dígitos hexadecimais insuficientes + + Insufficient or invalid hexadecimal digits + Insufficient or invalid hexadecimal digits This is an error message shown to the user when they write an invalid Regular Expression. Example: \x diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf index 1089221b5e681..7933ca7291567 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf @@ -940,9 +940,9 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma Встроить временную переменную - - Insufficient hexadecimal digits - Недостаточно шестнадцатеричных цифр + + Insufficient or invalid hexadecimal digits + Insufficient or invalid hexadecimal digits This is an error message shown to the user when they write an invalid Regular Expression. Example: \x diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf index 5143fb3a2357d..7048b4583a562 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf @@ -940,9 +940,9 @@ AM ve PM arasındaki farkın korunmasının gerekli olduğu diller için "tt" be Satır içi geçici değişken - - Insufficient hexadecimal digits - Yetersiz onaltılık basamak + + Insufficient or invalid hexadecimal digits + Insufficient or invalid hexadecimal digits This is an error message shown to the user when they write an invalid Regular Expression. Example: \x diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf index 08b47dc147090..b9584d10b9565 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf @@ -940,9 +940,9 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma 内联临时变量 - - Insufficient hexadecimal digits - 无效的十六进制数字 + + Insufficient or invalid hexadecimal digits + Insufficient or invalid hexadecimal digits This is an error message shown to the user when they write an invalid Regular Expression. Example: \x diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf index 14cbd2ec2a66d..c1a8dfa2258a3 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf @@ -940,9 +940,9 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma 內嵌暫存變數 - - Insufficient hexadecimal digits - 十六進位數位不足 + + Insufficient or invalid hexadecimal digits + Insufficient or invalid hexadecimal digits This is an error message shown to the user when they write an invalid Regular Expression. Example: \x From c3e1a6c43ad6345e39a10d587f5c4aeb69ee636d Mon Sep 17 00:00:00 2001 From: Cyrus Najmabadi Date: Wed, 4 Dec 2024 10:52:05 -0800 Subject: [PATCH 08/15] Fix loc string --- .../CSharpRegexParserTests_BasicTests.cs | 6 +++--- .../CSharpRegexParserTests_DotnetNegativeTests.cs | 4 ++-- .../EmbeddedLanguages/RegularExpressions/RegexLexer.cs | 2 +- src/Features/Core/Portable/FeaturesResources.resx | 4 ++-- .../Core/Portable/xlf/FeaturesResources.cs.xlf | 10 +++++----- .../Core/Portable/xlf/FeaturesResources.de.xlf | 10 +++++----- .../Core/Portable/xlf/FeaturesResources.es.xlf | 10 +++++----- .../Core/Portable/xlf/FeaturesResources.fr.xlf | 10 +++++----- .../Core/Portable/xlf/FeaturesResources.it.xlf | 10 +++++----- .../Core/Portable/xlf/FeaturesResources.ja.xlf | 10 +++++----- .../Core/Portable/xlf/FeaturesResources.ko.xlf | 10 +++++----- .../Core/Portable/xlf/FeaturesResources.pl.xlf | 10 +++++----- .../Core/Portable/xlf/FeaturesResources.pt-BR.xlf | 10 +++++----- .../Core/Portable/xlf/FeaturesResources.ru.xlf | 10 +++++----- .../Core/Portable/xlf/FeaturesResources.tr.xlf | 10 +++++----- .../Core/Portable/xlf/FeaturesResources.zh-Hans.xlf | 10 +++++----- .../Core/Portable/xlf/FeaturesResources.zh-Hant.xlf | 10 +++++----- 17 files changed, 73 insertions(+), 73 deletions(-) diff --git a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs index 9b277580e6520..353ddaf7ba627 100644 --- a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs +++ b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs @@ -1906,7 +1906,7 @@ public void TestLargeExactRangeNumericQuantifier2() - + @@ -1965,7 +1965,7 @@ public void TestLargeOpenRangeNumericQuantifier2() - + @@ -2026,7 +2026,7 @@ public void TestLargeClosedRangeNumericQuantifier2() - + diff --git a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_DotnetNegativeTests.cs b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_DotnetNegativeTests.cs index 00f3bc72dffb3..35d4ed2190364 100644 --- a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_DotnetNegativeTests.cs +++ b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_DotnetNegativeTests.cs @@ -5324,7 +5324,7 @@ public void NegativeTest129() - + @@ -5377,7 +5377,7 @@ public void NegativeTest130() - + diff --git a/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexLexer.cs b/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexLexer.cs index 797758d4a3907..df39c5f852b55 100644 --- a/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexLexer.cs +++ b/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexLexer.cs @@ -303,7 +303,7 @@ private static bool IsEscapeCategoryChar(VirtualChar ch) if (error) { token = token.AddDiagnosticIfNone(new EmbeddedDiagnostic( - FeaturesResources.Capture_group_numbers_must_be_less_than_or_equal_to_Int32_MaxValue, + FeaturesResources.Quantifier_and_capture_group_numbers_must_be_less_than_or_equal_to_Int32_MaxValue, token.GetSpan())); } diff --git a/src/Features/Core/Portable/FeaturesResources.resx b/src/Features/Core/Portable/FeaturesResources.resx index f900543ffeddc..93e3ed285b1ec 100644 --- a/src/Features/Core/Portable/FeaturesResources.resx +++ b/src/Features/Core/Portable/FeaturesResources.resx @@ -1747,8 +1747,8 @@ If the "H" format specifier is used without other custom format specifiers, it's Cannot include class \{0} in character range This is an error message shown to the user when they write an invalid Regular Expression. Example: [a-\w]. {0} is the invalid class (\w here) - - Capture group numbers must be less than or equal to Int32.MaxValue + + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf index 2916cf6350ee8..f77dc79d792d9 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf @@ -345,11 +345,6 @@ Ujistěte se, že specifikátor tt použijete pro jazyky, pro které je nezbytn Nejde navigovat k symbolu pod stříškou. - - Capture group numbers must be less than or equal to Int32.MaxValue - Capture group numbers must be less than or equal to Int32.MaxValue - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Capture number cannot be zero Počet zachytávání nemůže být nulový @@ -1325,6 +1320,11 @@ Ujistěte se, že specifikátor tt použijete pro jazyky, pro které je nezbytn Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * + + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Query Dotaz diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.de.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.de.xlf index 8292c97fe12c6..c6bda7978af81 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.de.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.de.xlf @@ -345,11 +345,6 @@ Stellen Sie sicher, dass Sie den Bezeichner "tt" für Sprachen verwenden, für d Navigieren zu dem Symbol unter dem Caret nicht möglich. - - Capture group numbers must be less than or equal to Int32.MaxValue - Capture group numbers must be less than or equal to Int32.MaxValue - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Capture number cannot be zero Aufzeichnungsnummer darf nicht 0 (null) sein. @@ -1325,6 +1320,11 @@ Stellen Sie sicher, dass Sie den Bezeichner "tt" für Sprachen verwenden, für d Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * + + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Query Abfrage diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.es.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.es.xlf index b4b67a3cc7313..c5573c5d4ceeb 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.es.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.es.xlf @@ -345,11 +345,6 @@ Asegúrese de usar el especificador "tt" para los idiomas para los que es necesa No se puede navegar al símbolo que hay debajo del símbolo de intercalación. - - Capture group numbers must be less than or equal to Int32.MaxValue - Capture group numbers must be less than or equal to Int32.MaxValue - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Capture number cannot be zero La captura de número no puede ser cero @@ -1325,6 +1320,11 @@ Asegúrese de usar el especificador "tt" para los idiomas para los que es necesa Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * + + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Query Consulta diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf index be9e3c10583c2..38c71e6bfb62a 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf @@ -345,11 +345,6 @@ Veillez à utiliser le spécificateur "tt" pour les langues où il est nécessai Impossible de naviguer jusqu'au symbole sous le caret. - - Capture group numbers must be less than or equal to Int32.MaxValue - Capture group numbers must be less than or equal to Int32.MaxValue - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Capture number cannot be zero Le nombre de captures ne peut pas être égal à zéro @@ -1325,6 +1320,11 @@ Veillez à utiliser le spécificateur "tt" pour les langues où il est nécessai Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * + + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Query Requête diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.it.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.it.xlf index 82933a7bc74a9..f6c866b53c2e5 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.it.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.it.xlf @@ -345,11 +345,6 @@ Assicurarsi di usare l'identificatore "tt" per le lingue per le quali è necessa Non è possibile passare al simbolo sotto il punto di inserimento. - - Capture group numbers must be less than or equal to Int32.MaxValue - Capture group numbers must be less than or equal to Int32.MaxValue - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Capture number cannot be zero Il numero di acquisizioni non può essere zero @@ -1325,6 +1320,11 @@ Assicurarsi di usare l'identificatore "tt" per le lingue per le quali è necessa Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * + + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Query Query diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf index 2bed604c2fd5a..cce5b5fb35e8c 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf @@ -345,11 +345,6 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma カレットの下のシンボルに移動できません。 - - Capture group numbers must be less than or equal to Int32.MaxValue - Capture group numbers must be less than or equal to Int32.MaxValue - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Capture number cannot be zero キャプチャ番号を 0 にすることはできません @@ -1325,6 +1320,11 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * + + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Query クエリ diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf index 7f6f93b80fb5b..aaee5b3a8cfa7 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf @@ -345,11 +345,6 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma 캐럿에서 기호를 탐색할 수 없습니다. - - Capture group numbers must be less than or equal to Int32.MaxValue - Capture group numbers must be less than or equal to Int32.MaxValue - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Capture number cannot be zero 캡처 번호는 0일 수 없습니다. @@ -1325,6 +1320,11 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * + + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Query 쿼리 diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf index cdaa5a833eaac..931cecd856fa8 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf @@ -345,11 +345,6 @@ Pamiętaj, aby nie używać specyfikatora „tt” dla wszystkich języków, w k Nie można przejść do symbolu pod karetką. - - Capture group numbers must be less than or equal to Int32.MaxValue - Capture group numbers must be less than or equal to Int32.MaxValue - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Capture number cannot be zero Numer przechwytywania nie może być równy zeru @@ -1325,6 +1320,11 @@ Pamiętaj, aby nie używać specyfikatora „tt” dla wszystkich języków, w k Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * + + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Query Zapytanie diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf index ae94d86cca6a5..4bf6416f87fad 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf @@ -345,11 +345,6 @@ Verifique se o especificador "tt" foi usado para idiomas para os quais é necess Não é possível navegar para o símbolo sob o cursor. - - Capture group numbers must be less than or equal to Int32.MaxValue - Capture group numbers must be less than or equal to Int32.MaxValue - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Capture number cannot be zero O número da captura não pode ser zero @@ -1325,6 +1320,11 @@ Verifique se o especificador "tt" foi usado para idiomas para os quais é necess Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * + + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Query Consulta diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf index 7933ca7291567..c0140e8aa6ede 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf @@ -345,11 +345,6 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma Не удается перейти к символу, на котором находится курсор. - - Capture group numbers must be less than or equal to Int32.MaxValue - Capture group numbers must be less than or equal to Int32.MaxValue - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Capture number cannot be zero Номер записи не может быть равен нулю @@ -1325,6 +1320,11 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * + + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Query Запрос diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf index 7048b4583a562..114ce304e2624 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf @@ -345,11 +345,6 @@ AM ve PM arasındaki farkın korunmasının gerekli olduğu diller için "tt" be Giriş işareti altında sembole gidilemiyor. - - Capture group numbers must be less than or equal to Int32.MaxValue - Capture group numbers must be less than or equal to Int32.MaxValue - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Capture number cannot be zero Yakalama numarası sıfır olamaz @@ -1325,6 +1320,11 @@ AM ve PM arasındaki farkın korunmasının gerekli olduğu diller için "tt" be Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * + + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Query Sorgu diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf index b9584d10b9565..47fb21e72ea38 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf @@ -345,11 +345,6 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma 无法导航到插入点下面的符号。 - - Capture group numbers must be less than or equal to Int32.MaxValue - Capture group numbers must be less than or equal to Int32.MaxValue - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Capture number cannot be zero 捕获编号不能为零 @@ -1325,6 +1320,11 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * + + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Query 查询 diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf index c1a8dfa2258a3..c363aa538e9ef 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf @@ -345,11 +345,6 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma 無法巡覽至插入號下的符號。 - - Capture group numbers must be less than or equal to Int32.MaxValue - Capture group numbers must be less than or equal to Int32.MaxValue - This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} - Capture number cannot be zero 擷取號碼不可為零 @@ -1325,6 +1320,11 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma Quantifier '{0}' following nothing This is an error message shown to the user when they write an invalid Regular Expression. Example: * + + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue + Quantifier and capture group numbers must be less than or equal to Int32.MaxValue + This is an error message shown to the user when they write an invalid Regular Expression. Example: a{2147483648} + Query 查詢 From efc8ff01548ddc960347d58303d3abf98387d2b9 Mon Sep 17 00:00:00 2001 From: Cyrus Najmabadi Date: Wed, 4 Dec 2024 10:55:55 -0800 Subject: [PATCH 09/15] fix tests --- ...arpRegexParserTests_DotnetNegativeTests.cs | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_DotnetNegativeTests.cs b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_DotnetNegativeTests.cs index 35d4ed2190364..248ca60b2ad11 100644 --- a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_DotnetNegativeTests.cs +++ b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_DotnetNegativeTests.cs @@ -261,7 +261,7 @@ public void NegativeTest7() - + @@ -927,7 +927,7 @@ public void NegativeTest29() - + @@ -1204,7 +1204,7 @@ public void NegativeTest37() - + @@ -1250,7 +1250,7 @@ public void NegativeTest38() - + @@ -1300,7 +1300,7 @@ public void NegativeTest39() - + @@ -1354,7 +1354,7 @@ public void NegativeTest40() - + @@ -1422,7 +1422,7 @@ public void NegativeTest42() - + @@ -1736,7 +1736,7 @@ public void NegativeTest52() - + @@ -1775,7 +1775,7 @@ public void NegativeTest53() - + @@ -2105,7 +2105,7 @@ public void NegativeTest62() - + @@ -2143,7 +2143,7 @@ public void NegativeTest63() - + @@ -2281,7 +2281,7 @@ public void NegativeTest66() - + @@ -2322,7 +2322,7 @@ public void NegativeTest67() - + @@ -2358,7 +2358,7 @@ public void NegativeTest68() - + @@ -2544,7 +2544,7 @@ public void NegativeTest73() - + @@ -2689,7 +2689,7 @@ public void NegativeTest76() - + @@ -5721,7 +5721,7 @@ public void NegativeTest136() - + From 3ca0cc97a9c97bb75dc26e44ddf0c6881c145974 Mon Sep 17 00:00:00 2001 From: Cyrus Najmabadi Date: Wed, 4 Dec 2024 11:03:28 -0800 Subject: [PATCH 10/15] Fix loc string --- .../CSharpRegexParserTests_BasicTests.cs | 12 ++++++------ .../RegularExpressions/RegexParser.cs | 2 +- src/Features/Core/Portable/FeaturesResources.resx | 4 ++-- .../Core/Portable/xlf/FeaturesResources.cs.xlf | 10 +++++----- .../Core/Portable/xlf/FeaturesResources.de.xlf | 10 +++++----- .../Core/Portable/xlf/FeaturesResources.es.xlf | 10 +++++----- .../Core/Portable/xlf/FeaturesResources.fr.xlf | 10 +++++----- .../Core/Portable/xlf/FeaturesResources.it.xlf | 10 +++++----- .../Core/Portable/xlf/FeaturesResources.ja.xlf | 10 +++++----- .../Core/Portable/xlf/FeaturesResources.ko.xlf | 10 +++++----- .../Core/Portable/xlf/FeaturesResources.pl.xlf | 10 +++++----- .../Core/Portable/xlf/FeaturesResources.pt-BR.xlf | 10 +++++----- .../Core/Portable/xlf/FeaturesResources.ru.xlf | 10 +++++----- .../Core/Portable/xlf/FeaturesResources.tr.xlf | 10 +++++----- .../Core/Portable/xlf/FeaturesResources.zh-Hans.xlf | 10 +++++----- .../Core/Portable/xlf/FeaturesResources.zh-Hant.xlf | 10 +++++----- 16 files changed, 74 insertions(+), 74 deletions(-) diff --git a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs index 353ddaf7ba627..102d949b16d6f 100644 --- a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs +++ b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs @@ -2594,7 +2594,7 @@ public void TestAsteriskQuantifierAtStart() - + @@ -2625,7 +2625,7 @@ public void TestAsteriskQuantifierAtStartOfGroup() - + @@ -2682,7 +2682,7 @@ public void TestPlusQuantifierAtStart() - + @@ -2713,7 +2713,7 @@ public void TestPlusQuantifierAtStartOfGroup() - + @@ -2770,7 +2770,7 @@ public void TestQuestionQuantifierAtStart() - + @@ -2801,7 +2801,7 @@ public void TestQuestionQuantifierAtStartOfGroup() - + diff --git a/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexParser.cs b/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexParser.cs index 6fba6b2ddc8d5..25f9da793f38e 100644 --- a/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexParser.cs +++ b/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexParser.cs @@ -811,7 +811,7 @@ private RegexConditionalGroupingNode ParseConditionalGrouping(RegexToken openPar { innerCloseParenToken = CreateMissingToken(RegexKind.CloseParenToken); capture = capture.AddDiagnosticIfNone(new EmbeddedDiagnostic( - FeaturesResources.Malformed, + string.Format(FeaturesResources.Conditional_alternation_is_missing_a_closing_parenthesis_after_the_group_number_0, capture.VirtualChars.First()), capture.GetSpan())); MoveBackBeforePreviousScan(); } diff --git a/src/Features/Core/Portable/FeaturesResources.resx b/src/Features/Core/Portable/FeaturesResources.resx index 93e3ed285b1ec..fbd5a26174790 100644 --- a/src/Features/Core/Portable/FeaturesResources.resx +++ b/src/Features/Core/Portable/FeaturesResources.resx @@ -1775,8 +1775,8 @@ If the "H" format specifier is used without other custom format specifiers, it's Invalid group name: Group names must begin with a word character This is an error message shown to the user when they write an invalid Regular Expression. Example: (?<a >a) - - malformed + + Conditional alternation is missing a closing parenthesis after the group number '{0}' This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf index f77dc79d792d9..691df044ff92d 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.cs.xlf @@ -500,6 +500,11 @@ Ujistěte se, že specifikátor tt použijete pro jazyky, pro které je nezbytn Komentáře nejsou povolené + + Conditional alternation is missing a closing parenthesis after the group number '{0}' + Conditional alternation is missing a closing parenthesis after the group number '{0}' + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + Configure {0} code style Nakonfigurovat styl kódu {0} @@ -1035,11 +1040,6 @@ Ujistěte se, že specifikátor tt použijete pro jazyky, pro které je nezbytn Nastavení metody jako asynchronní vyžaduje restartování aplikace, protože tuto akci modul runtime nepodporuje. - - malformed - malformed - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - Malformed \p{X} character escape Chybně formátovaná řídicí sekvence znaků \p{X} diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.de.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.de.xlf index c6bda7978af81..9edf898d4a95b 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.de.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.de.xlf @@ -500,6 +500,11 @@ Stellen Sie sicher, dass Sie den Bezeichner "tt" für Sprachen verwenden, für d Nicht zulässige Kommentare + + Conditional alternation is missing a closing parenthesis after the group number '{0}' + Conditional alternation is missing a closing parenthesis after the group number '{0}' + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + Configure {0} code style Codeformat "{0}" konfigurieren @@ -1035,11 +1040,6 @@ Stellen Sie sicher, dass Sie den Bezeichner "tt" für Sprachen verwenden, für d Das Festlegen einer Methode als asynchron erfordert einen Neustart der Anwendung, da es von der Laufzeit nicht unterstützt wird. - - malformed - malformed - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - Malformed \p{X} character escape Falsch formatiertes \p{X}-Escapezeichen. diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.es.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.es.xlf index c5573c5d4ceeb..f3da212e96154 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.es.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.es.xlf @@ -500,6 +500,11 @@ Asegúrese de usar el especificador "tt" para los idiomas para los que es necesa Comentarios no permitidos + + Conditional alternation is missing a closing parenthesis after the group number '{0}' + Conditional alternation is missing a closing parenthesis after the group number '{0}' + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + Configure {0} code style Configurar el estilo de código de {0} @@ -1035,11 +1040,6 @@ Asegúrese de usar el especificador "tt" para los idiomas para los que es necesa Para convertir un método en asincrónico, es necesario reiniciar la aplicación porque no es compatible con el tiempo de ejecución. - - malformed - malformed - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - Malformed \p{X} character escape Escape de carácter incorrecto \p{X} diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf index 38c71e6bfb62a..0e2484015a084 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.fr.xlf @@ -500,6 +500,11 @@ Veillez à utiliser le spécificateur "tt" pour les langues où il est nécessai Commentaires non autorisés + + Conditional alternation is missing a closing parenthesis after the group number '{0}' + Conditional alternation is missing a closing parenthesis after the group number '{0}' + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + Configure {0} code style Configurer le style de code {0} @@ -1035,11 +1040,6 @@ Veillez à utiliser le spécificateur "tt" pour les langues où il est nécessai La création d’une méthode asynchrone nécessite le redémarrage de l’application, car elle n’est pas prise en charge par le runtime. - - malformed - malformed - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - Malformed \p{X} character escape Caractère d'échappement incorrect \p{X} diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.it.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.it.xlf index f6c866b53c2e5..f301b43ea1427 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.it.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.it.xlf @@ -500,6 +500,11 @@ Assicurarsi di usare l'identificatore "tt" per le lingue per le quali è necessa Commenti non consentiti + + Conditional alternation is missing a closing parenthesis after the group number '{0}' + Conditional alternation is missing a closing parenthesis after the group number '{0}' + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + Configure {0} code style Configura lo stile del codice di {0} @@ -1035,11 +1040,6 @@ Assicurarsi di usare l'identificatore "tt" per le lingue per le quali è necessa Per rendere un metodo asincrono, è necessario riavviare l'applicazione perché non è supportata dal runtime. - - malformed - malformed - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - Malformed \p{X} character escape Sequenza di caratteri di escape \\p{X} non valida diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf index cce5b5fb35e8c..2d3c5bf4ee623 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.ja.xlf @@ -500,6 +500,11 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma コメントは使用できません + + Conditional alternation is missing a closing parenthesis after the group number '{0}' + Conditional alternation is missing a closing parenthesis after the group number '{0}' + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + Configure {0} code style {0} コード スタイルの構成 @@ -1035,11 +1040,6 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma ランタイムでサポートされていないため、メソッドを非同期にするには、アプリケーションを再起動する必要があります。 - - malformed - malformed - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - Malformed \p{X} character escape 間違った形式の \p{X} エスケープ文字です diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf index aaee5b3a8cfa7..a6f6947cd5b72 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.ko.xlf @@ -500,6 +500,11 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma 주석이 허용되지 않습니다. + + Conditional alternation is missing a closing parenthesis after the group number '{0}' + Conditional alternation is missing a closing parenthesis after the group number '{0}' + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + Configure {0} code style {0} 코드 스타일 구성 @@ -1035,11 +1040,6 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma 런타임에서 지원하지 않기 때문에 메서드를 비동기화하려면 애플리케이션을 다시 시작해야 합니다. - - malformed - malformed - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - Malformed \p{X} character escape 형식이 잘못된 \p{X} 문자 이스케이프 diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf index 931cecd856fa8..ebf6295998b2f 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.pl.xlf @@ -500,6 +500,11 @@ Pamiętaj, aby nie używać specyfikatora „tt” dla wszystkich języków, w k Komentarze są niedozwolone + + Conditional alternation is missing a closing parenthesis after the group number '{0}' + Conditional alternation is missing a closing parenthesis after the group number '{0}' + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + Configure {0} code style Konfiguruj styl kodu {0} @@ -1035,11 +1040,6 @@ Pamiętaj, aby nie używać specyfikatora „tt” dla wszystkich języków, w k Ustanawianie metody asynchroniczną wymaga ponownego uruchomienia aplikacji, ponieważ nie jest to obsługiwane przez środowisko uruchomieniowe. - - malformed - malformed - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - Malformed \p{X} character escape Źle sformułowana sekwencja ucieczki znaku \p{X} diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf index 4bf6416f87fad..338e518c45f90 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.pt-BR.xlf @@ -500,6 +500,11 @@ Verifique se o especificador "tt" foi usado para idiomas para os quais é necess Comentários não permitidos + + Conditional alternation is missing a closing parenthesis after the group number '{0}' + Conditional alternation is missing a closing parenthesis after the group number '{0}' + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + Configure {0} code style Configurar estilo de código de {0} @@ -1035,11 +1040,6 @@ Verifique se o especificador "tt" foi usado para idiomas para os quais é necess Tornar um método assíncrono requer reiniciar o aplicativo porque não há suporte para o tempo de execução. - - malformed - malformed - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - Malformed \p{X} character escape Escape de caractere malformado \p{X} diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf index c0140e8aa6ede..84c03761bf722 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.ru.xlf @@ -500,6 +500,11 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma Комментарии не разрешены + + Conditional alternation is missing a closing parenthesis after the group number '{0}' + Conditional alternation is missing a closing parenthesis after the group number '{0}' + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + Configure {0} code style Настройка стиля кода {0} @@ -1035,11 +1040,6 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma Чтобы сделать метод асинхронным, требуется перезапустить приложение, так как это не поддерживается средой выполнения. - - malformed - malformed - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - Malformed \p{X} character escape Неправильная escape-последовательность \p{X} diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf index 114ce304e2624..a149392fba87e 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.tr.xlf @@ -500,6 +500,11 @@ AM ve PM arasındaki farkın korunmasının gerekli olduğu diller için "tt" be Açıklamalara izin verilmiyor + + Conditional alternation is missing a closing parenthesis after the group number '{0}' + Conditional alternation is missing a closing parenthesis after the group number '{0}' + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + Configure {0} code style {0} kod stilini yapılandır @@ -1035,11 +1040,6 @@ AM ve PM arasındaki farkın korunmasının gerekli olduğu diller için "tt" be Bir metodu zaman uyumsuz yapmak çalışma zamanı tarafından desteklenmediğinden uygulamanın yeniden başlatılmasını gerektirir. - - malformed - malformed - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - Malformed \p{X} character escape Hatalı biçimlendirilmiş \p{X} karakter kaçış diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf index 47fb21e72ea38..9fdac784def58 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hans.xlf @@ -500,6 +500,11 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma 不允许注释 + + Conditional alternation is missing a closing parenthesis after the group number '{0}' + Conditional alternation is missing a closing parenthesis after the group number '{0}' + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + Configure {0} code style 配置 {0} 代码样式 @@ -1035,11 +1040,6 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma 使方法异步需要重启应用程序,因为运行时不支持此操作。 - - malformed - malformed - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - Malformed \p{X} character escape \p{X} 字符转义格式错误 diff --git a/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf b/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf index c363aa538e9ef..3feac1ffc6d1d 100644 --- a/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf +++ b/src/Features/Core/Portable/xlf/FeaturesResources.zh-Hant.xlf @@ -500,6 +500,11 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma 不允許的註解 + + Conditional alternation is missing a closing parenthesis after the group number '{0}' + Conditional alternation is missing a closing parenthesis after the group number '{0}' + This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 + Configure {0} code style 設定 {0} 程式碼樣式 @@ -1035,11 +1040,6 @@ Make sure to use the "tt" specifier for languages for which it's necessary to ma 因為執行時間不支援,所以製作非同步方法需要重新開機應用程式。 - - malformed - malformed - This is an error message shown to the user when they write an invalid Regular Expression. Example: (?(0 - Malformed \p{X} character escape \p{X} 字元逸出語式錯誤 From f589008d23f3b2bc16060692e43ec4bac92d962b Mon Sep 17 00:00:00 2001 From: Cyrus Najmabadi Date: Wed, 4 Dec 2024 11:06:26 -0800 Subject: [PATCH 11/15] Fix loc string --- .../CSharpRegexParserTests_BasicTests.cs | 26 +++++++++---------- ...arpRegexParserTests_DotnetNegativeTests.cs | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs index 102d949b16d6f..538f8fccfff0f 100644 --- a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs +++ b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs @@ -506,7 +506,7 @@ public void TestOpenQuestion1() - + @@ -539,7 +539,7 @@ public void TestOpenQuestion2() - + @@ -575,7 +575,7 @@ public void TestOpenQuestion3() - + @@ -612,7 +612,7 @@ public void TestOpenQuestion4() - + @@ -2479,7 +2479,7 @@ public void TestDanglingNumericQuantifier1() - + @@ -2507,7 +2507,7 @@ public void TestDanglingNumericQuantifier2() - + @@ -2863,7 +2863,7 @@ public void TestNumericQuantifierAtStart() - + @@ -2897,7 +2897,7 @@ public void TestNumericQuantifierAtStartOfGroup() - + @@ -10285,7 +10285,7 @@ public void TestConditionalCapture2() - + @@ -10585,7 +10585,7 @@ public void TestConditionalCapture10() - + @@ -11163,7 +11163,7 @@ public void TestCommentInConditionalGrouping1() - + @@ -11207,7 +11207,7 @@ public void TestCommentInConditionalGrouping2() - + @@ -11251,7 +11251,7 @@ public void TestCommentInConditionalGrouping3() - + diff --git a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_DotnetNegativeTests.cs b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_DotnetNegativeTests.cs index 248ca60b2ad11..1ad6ef042b799 100644 --- a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_DotnetNegativeTests.cs +++ b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_DotnetNegativeTests.cs @@ -1163,7 +1163,7 @@ public void NegativeTest36() - + From 9fc14124828469bd2e6e96fd3343a0ce2e0b984b Mon Sep 17 00:00:00 2001 From: Cyrus Najmabadi Date: Wed, 4 Dec 2024 11:13:06 -0800 Subject: [PATCH 12/15] Fix loc string --- .../RegularExpressions/CSharpRegexParserTests_BasicTests.cs | 4 ++-- .../EmbeddedLanguages/RegularExpressions/RegexParser.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs index 538f8fccfff0f..6ebbf0dc423bd 100644 --- a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs +++ b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs @@ -8137,7 +8137,7 @@ public void TestBalancingGrouping1() - + @@ -8457,7 +8457,7 @@ public void TestBalancingGrouping10() - + diff --git a/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexParser.cs b/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexParser.cs index 25f9da793f38e..457252c6956f3 100644 --- a/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexParser.cs +++ b/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexParser.cs @@ -1067,7 +1067,7 @@ private RegexBalancingGroupingNode ParseBalancingGrouping( ConsumeCurrentToken(allowTrivia: false); openParenToken = openParenToken.AddDiagnosticIfNone(new EmbeddedDiagnostic( - FeaturesResources.Invalid_group_name_Group_names_must_begin_with_a_word_character, + FeaturesResources.Unrecognized_grouping_construct, GetTokenSpanIncludingEOF(_currentToken))); // If we weren't at the end of the text, go back to before whatever character From 32a1f555fd074c8867042e53cb08cf0c6dcc58d7 Mon Sep 17 00:00:00 2001 From: Cyrus Najmabadi Date: Wed, 4 Dec 2024 11:19:06 -0800 Subject: [PATCH 13/15] Fix loc string --- .../RegularExpressions/RegexParser.cs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexParser.cs b/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexParser.cs index 457252c6956f3..af162d4bb2906 100644 --- a/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexParser.cs +++ b/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexParser.cs @@ -1066,9 +1066,18 @@ private RegexBalancingGroupingNode ParseBalancingGrouping( // Invalid group name: Group names must begin with a word character ConsumeCurrentToken(allowTrivia: false); - openParenToken = openParenToken.AddDiagnosticIfNone(new EmbeddedDiagnostic( - FeaturesResources.Unrecognized_grouping_construct, - GetTokenSpanIncludingEOF(_currentToken))); + if (firstCapture.IsMissing) + { + openParenToken = openParenToken.AddDiagnosticIfNone(new EmbeddedDiagnostic( + FeaturesResources.Unrecognized_grouping_construct, + GetTokenSpanIncludingEOF(_currentToken))); + } + else + { + openParenToken = openParenToken.AddDiagnosticIfNone(new EmbeddedDiagnostic( + FeaturesResources.Invalid_group_name_Group_names_must_begin_with_a_word_character, + GetTokenSpanIncludingEOF(_currentToken))); + } // If we weren't at the end of the text, go back to before whatever character // we just consumed. From c5ef7e115255269794f65465bcd3849a1a2b1ac6 Mon Sep 17 00:00:00 2001 From: Cyrus Najmabadi Date: Wed, 4 Dec 2024 11:39:53 -0800 Subject: [PATCH 14/15] Fix loc string --- .../CSharpRegexParserTests_BasicTests.cs | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs index 6ebbf0dc423bd..c2858ae5cfef8 100644 --- a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs +++ b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs @@ -8211,7 +8211,7 @@ public void TestBalancingGrouping3() - """, RegexOptions.IgnorePatternWhitespace, allowIndexOutOfRange: true); + """, RegexOptions.IgnorePatternWhitespace, runSubTreeTests: false, allowIndexOutOfRange: true); } [Fact] @@ -8244,7 +8244,7 @@ public void TestBalancingGrouping4() - """, RegexOptions.IgnorePatternWhitespace, allowIndexOutOfRange: true); + """, RegexOptions.IgnorePatternWhitespace, runSubTreeTests: false, allowIndexOutOfRange: true); } [Fact] @@ -8274,7 +8274,7 @@ public void TestBalancingGrouping5() - """, RegexOptions.IgnorePatternWhitespace, allowIndexOutOfRange: true); + """, RegexOptions.IgnorePatternWhitespace, runSubTreeTests: false, allowIndexOutOfRange: true); } [Fact] @@ -8314,7 +8314,7 @@ public void TestBalancingGrouping6() - """, RegexOptions.IgnorePatternWhitespace, allowIndexOutOfRange: true); + """, RegexOptions.IgnorePatternWhitespace, runSubTreeTests: false, allowIndexOutOfRange: true); } [Fact] @@ -8360,7 +8360,7 @@ public void TestBalancingGrouping7() - """, RegexOptions.IgnorePatternWhitespace, allowIndexOutOfRange: true); + """, RegexOptions.IgnorePatternWhitespace, runSubTreeTests: false, allowIndexOutOfRange: true); } [Fact] @@ -8400,7 +8400,7 @@ public void TestBalancingGrouping8() - """, RegexOptions.IgnorePatternWhitespace, allowIndexOutOfRange: true); + """, RegexOptions.IgnorePatternWhitespace, runSubTreeTests: false, allowIndexOutOfRange: true); } [Fact] @@ -8466,7 +8466,7 @@ public void TestBalancingGrouping10() - """, RegexOptions.IgnorePatternWhitespace, allowIndexOutOfRange: true); + """, RegexOptions.IgnorePatternWhitespace, runSubTreeTests: false, allowIndexOutOfRange: true); } [Fact] @@ -8502,7 +8502,7 @@ public void TestBalancingGrouping11() - """, RegexOptions.IgnorePatternWhitespace, allowIndexOutOfRange: true); + """, RegexOptions.IgnorePatternWhitespace, runSubTreeTests: false, allowIndexOutOfRange: true); } [Fact] @@ -8537,7 +8537,7 @@ public void TestBalancingGrouping12() - """, RegexOptions.IgnorePatternWhitespace, allowIndexOutOfRange: true); + """, RegexOptions.IgnorePatternWhitespace, runSubTreeTests: false, allowIndexOutOfRange: true); } [Fact] @@ -8572,7 +8572,7 @@ public void TestBalancingGrouping13() - """, RegexOptions.IgnorePatternWhitespace, allowIndexOutOfRange: true); + """, RegexOptions.IgnorePatternWhitespace, runSubTreeTests: false, allowIndexOutOfRange: true); } [Fact] @@ -8604,7 +8604,7 @@ public void TestBalancingGrouping14() - """, RegexOptions.IgnorePatternWhitespace, allowIndexOutOfRange: true); + """, RegexOptions.IgnorePatternWhitespace, runSubTreeTests: false, allowIndexOutOfRange: true); } [Fact] @@ -8694,7 +8694,7 @@ public void TestBalancingGrouping16() - """, RegexOptions.IgnorePatternWhitespace, allowIndexOutOfRange: true); + """, RegexOptions.IgnorePatternWhitespace, runSubTreeTests: false, allowIndexOutOfRange: true); } [Fact] @@ -8736,7 +8736,7 @@ public void TestBalancingGrouping17() - """, RegexOptions.IgnorePatternWhitespace, allowIndexOutOfRange: true); + """, RegexOptions.IgnorePatternWhitespace, runSubTreeTests: false, allowIndexOutOfRange: true); } [Fact] @@ -8768,7 +8768,7 @@ public void TestBalancingGrouping18() - """, RegexOptions.IgnorePatternWhitespace, allowIndexOutOfRange: true); + """, RegexOptions.IgnorePatternWhitespace, runSubTreeTests: false, allowIndexOutOfRange: true); } [Fact] From 0f172df762eb1636e257a5a30f9455eee12a0dd9 Mon Sep 17 00:00:00 2001 From: Cyrus Najmabadi Date: Wed, 4 Dec 2024 11:50:27 -0800 Subject: [PATCH 15/15] in progress --- .../CSharpRegexParserTests.cs | 3 +- .../CSharpRegexParserTests_BasicTests.cs | 1 + .../RegularExpressions/RegexParser.cs | 2 +- .../Common/EmbeddedDiagnostic.cs | 41 +------------------ .../Common/EmbeddedSyntaxToken.cs | 3 ++ 5 files changed, 8 insertions(+), 42 deletions(-) diff --git a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests.cs b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests.cs index 96c856077e162..42387fd34406d 100644 --- a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests.cs +++ b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests.cs @@ -15,6 +15,7 @@ using Microsoft.CodeAnalysis.EmbeddedLanguages.RegularExpressions; using Microsoft.CodeAnalysis.EmbeddedLanguages.VirtualChars; using Microsoft.CodeAnalysis.Text; +using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.CSharp.UnitTests.EmbeddedLanguages.RegularExpressions @@ -60,7 +61,7 @@ private void Test(string stringText, string expected, RegexOptions options, var actual = TreeToText(sourceText, tree) .Replace("\"", DoubleQuoteEscaping) .Replace(""", DoubleQuoteEscaping); - Assert.Equal(expected.Replace("\"", DoubleQuoteEscaping), actual); + AssertEx.Equal(expected.Replace("\"", DoubleQuoteEscaping), actual); } private void TryParseSubTrees( diff --git a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs index c2858ae5cfef8..fe0aec71a726f 100644 --- a/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs +++ b/src/EditorFeatures/CSharpTest2/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_BasicTests.cs @@ -8138,6 +8138,7 @@ public void TestBalancingGrouping1() + diff --git a/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexParser.cs b/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexParser.cs index af162d4bb2906..d6661f7f317d5 100644 --- a/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexParser.cs +++ b/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexParser.cs @@ -1036,7 +1036,7 @@ private RegexToken ParseCaptureGroupingCloseToken(ref RegexToken openParenToken, if (_currentToken.Kind == RegexKind.EndOfFile) { - openParenToken = openParenToken.AddDiagnosticIfNone(new EmbeddedDiagnostic( + openParenToken = openParenToken.AddDiagnosticIfMissing(new EmbeddedDiagnostic( FeaturesResources.Unrecognized_grouping_construct, GetSpan(openParenToken, openToken))); } diff --git a/src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Core/EmbeddedLanguages/Common/EmbeddedDiagnostic.cs b/src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Core/EmbeddedLanguages/Common/EmbeddedDiagnostic.cs index c53fd40c306e6..b17f4d4bd1235 100644 --- a/src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Core/EmbeddedLanguages/Common/EmbeddedDiagnostic.cs +++ b/src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Core/EmbeddedLanguages/Common/EmbeddedDiagnostic.cs @@ -17,43 +17,4 @@ namespace Microsoft.CodeAnalysis.EmbeddedLanguages.Common; /// for the range of characters for '\\p{0}' (even though the regex engine would only see the \\ /// translated as a virtual char to the single \ character. /// -internal readonly struct EmbeddedDiagnostic : IEquatable -{ - public readonly string Message; - public readonly TextSpan Span; - - public EmbeddedDiagnostic(string message, TextSpan span) - { - RoslynDebug.AssertNotNull(message); - Message = message; - Span = span; - } - - public override bool Equals(object? obj) - => obj is EmbeddedDiagnostic diagnostic && Equals(diagnostic); - - public bool Equals(EmbeddedDiagnostic other) - => Message == other.Message && - Span.Equals(other.Span); - - public override string ToString() - => Message; - - public override int GetHashCode() - { - unchecked - { - var hashCode = -954867195; - hashCode = hashCode * -1521134295 + base.GetHashCode(); - hashCode = hashCode * -1521134295 + EqualityComparer.Default.GetHashCode(Message); - hashCode = hashCode * -1521134295 + EqualityComparer.Default.GetHashCode(Span); - return hashCode; - } - } - - public static bool operator ==(EmbeddedDiagnostic diagnostic1, EmbeddedDiagnostic diagnostic2) - => diagnostic1.Equals(diagnostic2); - - public static bool operator !=(EmbeddedDiagnostic diagnostic1, EmbeddedDiagnostic diagnostic2) - => !(diagnostic1 == diagnostic2); -} +internal readonly record struct EmbeddedDiagnostic(string Message, TextSpan Span); diff --git a/src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Core/EmbeddedLanguages/Common/EmbeddedSyntaxToken.cs b/src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Core/EmbeddedLanguages/Common/EmbeddedSyntaxToken.cs index 2150fd617a93c..0d5f809823480 100644 --- a/src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Core/EmbeddedLanguages/Common/EmbeddedSyntaxToken.cs +++ b/src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Core/EmbeddedLanguages/Common/EmbeddedSyntaxToken.cs @@ -50,6 +50,9 @@ public EmbeddedSyntaxToken( public EmbeddedSyntaxToken AddDiagnosticIfNone(EmbeddedDiagnostic diagnostic) => Diagnostics.Length > 0 ? this : WithDiagnostics([diagnostic]); + public EmbeddedSyntaxToken AddDiagnosticIfMissing(EmbeddedDiagnostic diagnostic) + => Diagnostics.Contains(diagnostic) ? this : With(diagnostics: this.Diagnostics.Add(diagnostic)); + public EmbeddedSyntaxToken WithDiagnostics(ImmutableArray diagnostics) => With(diagnostics: diagnostics);