示例#1
0
        public IClassifier GetClassifier(ITextBuffer textBuffer)
        {
            RClassifier classifier = ServiceManager.GetService <RClassifier>(textBuffer);

            if (classifier == null)
            {
                classifier = new RClassifier(textBuffer, ClassificationRegistryService);
            }

            return(classifier);
        }
示例#2
0
 public static RClassifier GetRClassifier(ITextBuffer textBuffer) => RClassifier.FromTextBuffer(textBuffer);