public void Visit(RegexPosixPropertyNode node) { // The .net parser just interprets the [ of the node, and skips the rest. So // classify the end part as a comment. Result.Add(new ClassifiedSpan(node.TextToken.VirtualChars[0].Span, ClassificationTypeNames.RegexText)); Result.Add(new ClassifiedSpan( GetSpan(node.TextToken.VirtualChars[1], node.TextToken.VirtualChars.Last()), ClassificationTypeNames.RegexComment)); }
public void Visit(RegexPosixPropertyNode node) { // The .NET parser just interprets the [ of the node, and skips the rest. So // classify the end part as a comment. Context.AddClassification(ClassificationTypeNames.RegexText, node.TextToken.VirtualChars[0].Span); Context.AddClassification( ClassificationTypeNames.RegexComment, GetSpan(node.TextToken.VirtualChars[1], node.TextToken.VirtualChars.Last())); }