public IClassifier GetClassifier(ITextBuffer textBuffer) { RClassifier classifier = ServiceManager.GetService <RClassifier>(textBuffer); if (classifier == null) { classifier = new RClassifier(textBuffer, ClassificationRegistryService); } return(classifier); }
public static RClassifier GetRClassifier(ITextBuffer textBuffer) => RClassifier.FromTextBuffer(textBuffer);