提交 d4f09c97 编写于 作者: C Cyrus Najmabadi

Update colors.

上级 0d098a22
......@@ -356,38 +356,39 @@ private class RegexCommentFormatDefinition : ClassificationFormatDefinition
private RegexCommentFormatDefinition()
{
this.DisplayName = EditorFeaturesWpfResources.Regex_Comment;
this.ForegroundColor = Color.FromRgb(87, 166, 74);
this.ForegroundColor = Color.FromRgb(0, 128, 0);
}
}
[Export(typeof(EditorFormatDefinition))]
[ClassificationType(ClassificationTypeNames = ClassificationTypeNames.RegexText)]
[Name(ClassificationTypeNames.RegexText)]
[ClassificationType(ClassificationTypeNames = ClassificationTypeNames.RegexCharacterClass)]
[Name(ClassificationTypeNames.RegexCharacterClass)]
[Order(After = ClassificationTypeNames.StringLiteral)]
[Order(After = ClassificationTypeNames.VerbatimStringLiteral)]
[UserVisible(true)]
[ExcludeFromCodeCoverage]
private class RegexTextFormatDefinition : ClassificationFormatDefinition
private class RegexCharacterClassFormatDefinition : ClassificationFormatDefinition
{
private RegexTextFormatDefinition()
private RegexCharacterClassFormatDefinition()
{
this.DisplayName = EditorFeaturesWpfResources.Regex_Text;
this.ForegroundColor = Color.FromRgb(0, 0, 0);
this.DisplayName = EditorFeaturesWpfResources.Regex_Character_class;
this.ForegroundColor = Color.FromRgb(0x00, 0x73, 0xff);
}
}
[Export(typeof(EditorFormatDefinition))]
[ClassificationType(ClassificationTypeNames = ClassificationTypeNames.RegexCharacterClass)]
[Name(ClassificationTypeNames.RegexCharacterClass)]
[ClassificationType(ClassificationTypeNames = ClassificationTypeNames.RegexAnchor)]
[Name(ClassificationTypeNames.RegexAnchor)]
[Order(After = ClassificationTypeNames.StringLiteral)]
[Order(After = ClassificationTypeNames.VerbatimStringLiteral)]
[UserVisible(true)]
[ExcludeFromCodeCoverage]
private class RegexCharacterClassFormatDefinition : ClassificationFormatDefinition
private class RegexAnchorFormatDefinition : ClassificationFormatDefinition
{
private RegexCharacterClassFormatDefinition()
private RegexAnchorFormatDefinition()
{
this.DisplayName = EditorFeaturesWpfResources.Regex_Character_class;
this.ForegroundColor = Color.FromRgb(0x07, 0xbf, 0xb6);
this.DisplayName = EditorFeaturesWpfResources.Regex_Anchor;
this.ForegroundColor = Color.FromRgb(0xff, 0x00, 0xc1);
}
}
......@@ -403,23 +404,23 @@ private class RegexQuantifierFormatDefinition : ClassificationFormatDefinition
private RegexQuantifierFormatDefinition()
{
this.DisplayName = EditorFeaturesWpfResources.Regex_Quantifier;
this.ForegroundColor = Color.FromRgb(128, 0, 0);
this.ForegroundColor = Color.FromRgb(0xff, 0x00, 0xc1);
}
}
[Export(typeof(EditorFormatDefinition))]
[ClassificationType(ClassificationTypeNames = ClassificationTypeNames.RegexAnchor)]
[Name(ClassificationTypeNames.RegexAnchor)]
[ClassificationType(ClassificationTypeNames = ClassificationTypeNames.RegexGrouping)]
[Name(ClassificationTypeNames.RegexGrouping)]
[Order(After = ClassificationTypeNames.StringLiteral)]
[Order(After = ClassificationTypeNames.VerbatimStringLiteral)]
[UserVisible(true)]
[ExcludeFromCodeCoverage]
private class RegexAnchorFormatDefinition : ClassificationFormatDefinition
private class RegexGroupingFormatDefinition : ClassificationFormatDefinition
{
private RegexAnchorFormatDefinition()
private RegexGroupingFormatDefinition()
{
this.DisplayName = EditorFeaturesWpfResources.Regex_Anchor;
this.ForegroundColor = Color.FromRgb(128, 0, 0);
this.DisplayName = EditorFeaturesWpfResources.Regex_Grouping;
this.ForegroundColor = Color.FromRgb(0x05, 0xc3, 0xba);
}
}
......@@ -435,39 +436,56 @@ private class RegexAlternationFormatDefinition : ClassificationFormatDefinition
private RegexAlternationFormatDefinition()
{
this.DisplayName = EditorFeaturesWpfResources.Regex_Alternation;
this.ForegroundColor = Color.FromRgb(0xff, 0x78, 0x00);
this.ForegroundColor = Color.FromRgb(0x05, 0xc3, 0xba);
}
}
[Export(typeof(EditorFormatDefinition))]
[ClassificationType(ClassificationTypeNames = ClassificationTypeNames.RegexGrouping)]
[Name(ClassificationTypeNames.RegexGrouping)]
[ClassificationType(ClassificationTypeNames = ClassificationTypeNames.RegexText)]
[Name(ClassificationTypeNames.RegexText)]
[Order(After = ClassificationTypeNames.StringLiteral)]
[Order(After = ClassificationTypeNames.VerbatimStringLiteral)]
[UserVisible(true)]
[ExcludeFromCodeCoverage]
private class RegexGroupingFormatDefinition : ClassificationFormatDefinition
private class RegexTextFormatDefinition : ClassificationFormatDefinition
{
private RegexGroupingFormatDefinition()
private RegexTextFormatDefinition()
{
this.DisplayName = EditorFeaturesWpfResources.Regex_Grouping;
this.ForegroundColor = Color.FromRgb(0xff, 0x78, 0x00);
this.DisplayName = EditorFeaturesWpfResources.Regex_Text;
this.ForegroundColor = Color.FromRgb(0x80, 0x00, 0x00);
}
}
[Export(typeof(EditorFormatDefinition))]
[ClassificationType(ClassificationTypeNames = ClassificationTypeNames.RegexEscape)]
[Name(ClassificationTypeNames.RegexEscape)]
[ClassificationType(ClassificationTypeNames = ClassificationTypeNames.RegexSelfEscapedCharacter)]
[Name(ClassificationTypeNames.RegexSelfEscapedCharacter)]
[Order(After = ClassificationTypeNames.StringLiteral)]
[Order(After = ClassificationTypeNames.VerbatimStringLiteral)]
[UserVisible(true)]
[ExcludeFromCodeCoverage]
private class RegexEscapeFormatDefinition : ClassificationFormatDefinition
private class RegexSelfEscapedCharacterFormatDefinition : ClassificationFormatDefinition
{
private RegexEscapeFormatDefinition()
private RegexSelfEscapedCharacterFormatDefinition()
{
this.DisplayName = EditorFeaturesWpfResources.Regex_Escape;
this.ForegroundColor = Color.FromRgb(0x00, 0x73, 0xff);
this.DisplayName = EditorFeaturesWpfResources.Regex_SelfEscapedCharacter;
this.ForegroundColor = Color.FromRgb(0x80, 0x00, 0x00);
this.IsBold = true;
}
}
[Export(typeof(EditorFormatDefinition))]
[ClassificationType(ClassificationTypeNames = ClassificationTypeNames.RegexOtherEscape)]
[Name(ClassificationTypeNames.RegexOtherEscape)]
[Order(After = ClassificationTypeNames.StringLiteral)]
[Order(After = ClassificationTypeNames.VerbatimStringLiteral)]
[UserVisible(true)]
[ExcludeFromCodeCoverage]
private class RegexOtherEscapeFormatDefinition : ClassificationFormatDefinition
{
private RegexOtherEscapeFormatDefinition()
{
this.DisplayName = EditorFeaturesWpfResources.Regex_OtherEscape;
this.ForegroundColor = Color.FromRgb(0x9e, 0x5b, 0x71);
}
}
#endregion
......
......@@ -124,20 +124,20 @@ internal class EditorFeaturesWpfResources {
}
/// <summary>
/// Looks up a localized string similar to Regex - Escape.
/// Looks up a localized string similar to Regex - Grouping.
/// </summary>
internal static string Regex_Escape {
internal static string Regex_Grouping {
get {
return ResourceManager.GetString("Regex_Escape", resourceCulture);
return ResourceManager.GetString("Regex_Grouping", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Regex - Grouping.
/// Looks up a localized string similar to Regex - Other Escape.
/// </summary>
internal static string Regex_Grouping {
internal static string Regex_OtherEscape {
get {
return ResourceManager.GetString("Regex_Grouping", resourceCulture);
return ResourceManager.GetString("Regex_OtherEscape", resourceCulture);
}
}
......@@ -150,6 +150,15 @@ internal class EditorFeaturesWpfResources {
}
}
/// <summary>
/// Looks up a localized string similar to Regex - Self Escaped Character.
/// </summary>
internal static string Regex_SelfEscapedCharacter {
get {
return ResourceManager.GetString("Regex_SelfEscapedCharacter", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Regex - Text.
/// </summary>
......
......@@ -141,8 +141,8 @@
<data name="Regex_Quantifier" xml:space="preserve">
<value>Regex - Quantifier</value>
</data>
<data name="Regex_Escape" xml:space="preserve">
<value>Regex - Escape</value>
<data name="Regex_SelfEscapedCharacter" xml:space="preserve">
<value>Regex - Self Escaped Character</value>
</data>
<data name="Regex_Grouping" xml:space="preserve">
<value>Regex - Grouping</value>
......@@ -150,4 +150,7 @@
<data name="Regex_Text" xml:space="preserve">
<value>Regex - Text</value>
</data>
<data name="Regex_OtherEscape" xml:space="preserve">
<value>Regex - Other Escape</value>
</data>
</root>
\ No newline at end of file
......@@ -47,16 +47,21 @@
<target state="new">Regex - Text</target>
<note />
</trans-unit>
<trans-unit id="Regex_Escape">
<source>Regex - Escape</source>
<target state="new">Regex - Escape</target>
<note />
</trans-unit>
<trans-unit id="Regex_Grouping">
<source>Regex - Grouping</source>
<target state="new">Regex - Grouping</target>
<note />
</trans-unit>
<trans-unit id="Regex_SelfEscapedCharacter">
<source>Regex - Self Escaped Character</source>
<target state="new">Regex - Self Escaped Character</target>
<note />
</trans-unit>
<trans-unit id="Regex_OtherEscape">
<source>Regex - Other Escape</source>
<target state="new">Regex - Other Escape</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -47,16 +47,21 @@
<target state="new">Regex - Text</target>
<note />
</trans-unit>
<trans-unit id="Regex_Escape">
<source>Regex - Escape</source>
<target state="new">Regex - Escape</target>
<note />
</trans-unit>
<trans-unit id="Regex_Grouping">
<source>Regex - Grouping</source>
<target state="new">Regex - Grouping</target>
<note />
</trans-unit>
<trans-unit id="Regex_SelfEscapedCharacter">
<source>Regex - Self Escaped Character</source>
<target state="new">Regex - Self Escaped Character</target>
<note />
</trans-unit>
<trans-unit id="Regex_OtherEscape">
<source>Regex - Other Escape</source>
<target state="new">Regex - Other Escape</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -47,16 +47,21 @@
<target state="new">Regex - Text</target>
<note />
</trans-unit>
<trans-unit id="Regex_Escape">
<source>Regex - Escape</source>
<target state="new">Regex - Escape</target>
<note />
</trans-unit>
<trans-unit id="Regex_Grouping">
<source>Regex - Grouping</source>
<target state="new">Regex - Grouping</target>
<note />
</trans-unit>
<trans-unit id="Regex_SelfEscapedCharacter">
<source>Regex - Self Escaped Character</source>
<target state="new">Regex - Self Escaped Character</target>
<note />
</trans-unit>
<trans-unit id="Regex_OtherEscape">
<source>Regex - Other Escape</source>
<target state="new">Regex - Other Escape</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -47,16 +47,21 @@
<target state="new">Regex - Text</target>
<note />
</trans-unit>
<trans-unit id="Regex_Escape">
<source>Regex - Escape</source>
<target state="new">Regex - Escape</target>
<note />
</trans-unit>
<trans-unit id="Regex_Grouping">
<source>Regex - Grouping</source>
<target state="new">Regex - Grouping</target>
<note />
</trans-unit>
<trans-unit id="Regex_SelfEscapedCharacter">
<source>Regex - Self Escaped Character</source>
<target state="new">Regex - Self Escaped Character</target>
<note />
</trans-unit>
<trans-unit id="Regex_OtherEscape">
<source>Regex - Other Escape</source>
<target state="new">Regex - Other Escape</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -47,16 +47,21 @@
<target state="new">Regex - Text</target>
<note />
</trans-unit>
<trans-unit id="Regex_Escape">
<source>Regex - Escape</source>
<target state="new">Regex - Escape</target>
<note />
</trans-unit>
<trans-unit id="Regex_Grouping">
<source>Regex - Grouping</source>
<target state="new">Regex - Grouping</target>
<note />
</trans-unit>
<trans-unit id="Regex_SelfEscapedCharacter">
<source>Regex - Self Escaped Character</source>
<target state="new">Regex - Self Escaped Character</target>
<note />
</trans-unit>
<trans-unit id="Regex_OtherEscape">
<source>Regex - Other Escape</source>
<target state="new">Regex - Other Escape</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -47,16 +47,21 @@
<target state="new">Regex - Text</target>
<note />
</trans-unit>
<trans-unit id="Regex_Escape">
<source>Regex - Escape</source>
<target state="new">Regex - Escape</target>
<note />
</trans-unit>
<trans-unit id="Regex_Grouping">
<source>Regex - Grouping</source>
<target state="new">Regex - Grouping</target>
<note />
</trans-unit>
<trans-unit id="Regex_SelfEscapedCharacter">
<source>Regex - Self Escaped Character</source>
<target state="new">Regex - Self Escaped Character</target>
<note />
</trans-unit>
<trans-unit id="Regex_OtherEscape">
<source>Regex - Other Escape</source>
<target state="new">Regex - Other Escape</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -47,16 +47,21 @@
<target state="new">Regex - Text</target>
<note />
</trans-unit>
<trans-unit id="Regex_Escape">
<source>Regex - Escape</source>
<target state="new">Regex - Escape</target>
<note />
</trans-unit>
<trans-unit id="Regex_Grouping">
<source>Regex - Grouping</source>
<target state="new">Regex - Grouping</target>
<note />
</trans-unit>
<trans-unit id="Regex_SelfEscapedCharacter">
<source>Regex - Self Escaped Character</source>
<target state="new">Regex - Self Escaped Character</target>
<note />
</trans-unit>
<trans-unit id="Regex_OtherEscape">
<source>Regex - Other Escape</source>
<target state="new">Regex - Other Escape</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -47,16 +47,21 @@
<target state="new">Regex - Text</target>
<note />
</trans-unit>
<trans-unit id="Regex_Escape">
<source>Regex - Escape</source>
<target state="new">Regex - Escape</target>
<note />
</trans-unit>
<trans-unit id="Regex_Grouping">
<source>Regex - Grouping</source>
<target state="new">Regex - Grouping</target>
<note />
</trans-unit>
<trans-unit id="Regex_SelfEscapedCharacter">
<source>Regex - Self Escaped Character</source>
<target state="new">Regex - Self Escaped Character</target>
<note />
</trans-unit>
<trans-unit id="Regex_OtherEscape">
<source>Regex - Other Escape</source>
<target state="new">Regex - Other Escape</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -47,16 +47,21 @@
<target state="new">Regex - Text</target>
<note />
</trans-unit>
<trans-unit id="Regex_Escape">
<source>Regex - Escape</source>
<target state="new">Regex - Escape</target>
<note />
</trans-unit>
<trans-unit id="Regex_Grouping">
<source>Regex - Grouping</source>
<target state="new">Regex - Grouping</target>
<note />
</trans-unit>
<trans-unit id="Regex_SelfEscapedCharacter">
<source>Regex - Self Escaped Character</source>
<target state="new">Regex - Self Escaped Character</target>
<note />
</trans-unit>
<trans-unit id="Regex_OtherEscape">
<source>Regex - Other Escape</source>
<target state="new">Regex - Other Escape</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -47,16 +47,21 @@
<target state="new">Regex - Text</target>
<note />
</trans-unit>
<trans-unit id="Regex_Escape">
<source>Regex - Escape</source>
<target state="new">Regex - Escape</target>
<note />
</trans-unit>
<trans-unit id="Regex_Grouping">
<source>Regex - Grouping</source>
<target state="new">Regex - Grouping</target>
<note />
</trans-unit>
<trans-unit id="Regex_SelfEscapedCharacter">
<source>Regex - Self Escaped Character</source>
<target state="new">Regex - Self Escaped Character</target>
<note />
</trans-unit>
<trans-unit id="Regex_OtherEscape">
<source>Regex - Other Escape</source>
<target state="new">Regex - Other Escape</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -47,16 +47,21 @@
<target state="new">Regex - Text</target>
<note />
</trans-unit>
<trans-unit id="Regex_Escape">
<source>Regex - Escape</source>
<target state="new">Regex - Escape</target>
<note />
</trans-unit>
<trans-unit id="Regex_Grouping">
<source>Regex - Grouping</source>
<target state="new">Regex - Grouping</target>
<note />
</trans-unit>
<trans-unit id="Regex_SelfEscapedCharacter">
<source>Regex - Self Escaped Character</source>
<target state="new">Regex - Self Escaped Character</target>
<note />
</trans-unit>
<trans-unit id="Regex_OtherEscape">
<source>Regex - Other Escape</source>
<target state="new">Regex - Other Escape</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -47,16 +47,21 @@
<target state="new">Regex - Text</target>
<note />
</trans-unit>
<trans-unit id="Regex_Escape">
<source>Regex - Escape</source>
<target state="new">Regex - Escape</target>
<note />
</trans-unit>
<trans-unit id="Regex_Grouping">
<source>Regex - Grouping</source>
<target state="new">Regex - Grouping</target>
<note />
</trans-unit>
<trans-unit id="Regex_SelfEscapedCharacter">
<source>Regex - Self Escaped Character</source>
<target state="new">Regex - Self Escaped Character</target>
<note />
</trans-unit>
<trans-unit id="Regex_OtherEscape">
<source>Regex - Other Escape</source>
<target state="new">Regex - Other Escape</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -47,16 +47,21 @@
<target state="new">Regex - Text</target>
<note />
</trans-unit>
<trans-unit id="Regex_Escape">
<source>Regex - Escape</source>
<target state="new">Regex - Escape</target>
<note />
</trans-unit>
<trans-unit id="Regex_Grouping">
<source>Regex - Grouping</source>
<target state="new">Regex - Grouping</target>
<note />
</trans-unit>
<trans-unit id="Regex_SelfEscapedCharacter">
<source>Regex - Self Escaped Character</source>
<target state="new">Regex - Self Escaped Character</target>
<note />
</trans-unit>
<trans-unit id="Regex_OtherEscape">
<source>Regex - Other Escape</source>
<target state="new">Regex - Other Escape</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -166,9 +166,14 @@ internal sealed class ClassificationTypeDefinitions
internal readonly ClassificationTypeDefinition RegexAlternationTypeDefinition;
[Export]
[Name(ClassificationTypeNames.RegexEscape)]
[Name(ClassificationTypeNames.RegexOtherEscape)]
[BaseDefinition(PredefinedClassificationTypeNames.FormalLanguage)]
internal readonly ClassificationTypeDefinition RegexEscapeTypeDefinition;
internal readonly ClassificationTypeDefinition RegexOtherEscapeTypeDefinition;
[Export]
[Name(ClassificationTypeNames.RegexSelfEscapedCharacter)]
[BaseDefinition(PredefinedClassificationTypeNames.FormalLanguage)]
internal readonly ClassificationTypeDefinition RegexSelfEscapedCharacterTypeDefinition;
[Export]
[Name(ClassificationTypeNames.RegexGrouping)]
......
......@@ -16,7 +16,10 @@ public static class Regex
public static FormattedClassification Grouping(string value) => New(value, ClassificationTypeNames.RegexGrouping);
[DebuggerStepThrough]
public static FormattedClassification Escape(string value) => New(value, ClassificationTypeNames.RegexEscape);
public static FormattedClassification OtherEscape(string value) => New(value, ClassificationTypeNames.RegexOtherEscape);
[DebuggerStepThrough]
public static FormattedClassification SelfEscapedCharacter(string value) => New(value, ClassificationTypeNames.RegexSelfEscapedCharacter);
[DebuggerStepThrough]
public static FormattedClassification Alternation(string value) => New(value, ClassificationTypeNames.RegexAlternation);
......
......@@ -81,8 +81,9 @@ public void RefreshThemeColors()
UpdateForegroundColor(ClassificationTypeNames.RegexQuantifier, sourceFormatMap, targetFormatMap);
UpdateForegroundColor(ClassificationTypeNames.RegexAnchor, sourceFormatMap, targetFormatMap);
UpdateForegroundColor(ClassificationTypeNames.RegexAlternation, sourceFormatMap, targetFormatMap);
UpdateForegroundColor(ClassificationTypeNames.RegexEscape, sourceFormatMap, targetFormatMap);
UpdateForegroundColor(ClassificationTypeNames.RegexGrouping, sourceFormatMap, targetFormatMap);
UpdateForegroundColor(ClassificationTypeNames.RegexOtherEscape, sourceFormatMap, targetFormatMap);
UpdateForegroundColor(ClassificationTypeNames.RegexSelfEscapedCharacter, sourceFormatMap, targetFormatMap);
UpdateForegroundColor(ClassificationTypeNames.PreprocessorKeyword, sourceFormatMap, targetFormatMap);
UpdateForegroundColor(ClassificationTypeNames.PreprocessorText, sourceFormatMap, targetFormatMap);
......
......@@ -61,12 +61,13 @@ public static class ClassificationTypeNames
public const string XmlLiteralText = "xml literal - text";
internal const string RegexComment = "regex - comment";
internal const string RegexText = "regex - text";
internal const string RegexCharacterClass = "regex - character class";
internal const string RegexQuantifier = "regex - quantifier";
internal const string RegexAnchor = "regex - anchor";
internal const string RegexAlternation = "regex - alternation";
internal const string RegexEscape = "regex - escape";
internal const string RegexQuantifier = "regex - quantifier";
internal const string RegexGrouping = "regex - grouping";
internal const string RegexAlternation = "regex - alternation";
internal const string RegexText = "regex - text";
internal const string RegexSelfEscapedCharacter = "regex - self escaped character";
internal const string RegexOtherEscape = "regex - other escape";
}
}
......@@ -263,25 +263,22 @@ private void ClassifyGrouping(RegexGroupingNode node)
#endregion
#region Escapes
#region Other Escapes
public void Visit(RegexControlEscapeNode node)
=> ClassifyEscape(node);
=> ClassifyOtherEscape(node);
public void Visit(RegexHexEscapeNode node)
=> ClassifyEscape(node);
=> ClassifyOtherEscape(node);
public void Visit(RegexUnicodeEscapeNode node)
=> ClassifyEscape(node);
=> ClassifyOtherEscape(node);
public void Visit(RegexOctalEscapeNode node)
=> ClassifyEscape(node);
=> ClassifyOtherEscape(node);
public void Visit(RegexSimpleEscapeNode node)
=> ClassifyEscape(node);
public void ClassifyEscape(RegexNode node)
=> ClassifyWholeNode(node, ClassificationTypeNames.RegexEscape);
public void ClassifyOtherEscape(RegexNode node)
=> ClassifyWholeNode(node, ClassificationTypeNames.RegexOtherEscape);
#endregion
......@@ -310,6 +307,9 @@ public void Visit(RegexPosixPropertyNode node)
public void Visit(RegexAlternationNode node)
=> AddClassification(node.BarToken, ClassificationTypeNames.RegexAlternation);
public void Visit(RegexSimpleEscapeNode node)
=> ClassifyWholeNode(node, ClassificationTypeNames.RegexSelfEscapedCharacter);
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册