internal static ClassificationTypeDefinition BuiltinClassificationDefinition = null; // Set via MEF #endregion #region IDlrClassifierProvider public IClassifier GetClassifier(ITextBuffer buffer) { if (_categoryMap == null) { _categoryMap = FillCategoryMap(_classificationRegistry); } PythonClassifier res; if (!buffer.Properties.TryGetProperty<PythonClassifier>(typeof(PythonClassifier), out res) && buffer.ContentType.IsOfType(ContentType.TypeName)) { res = new PythonClassifier(this, buffer); buffer.Properties.AddProperty(typeof(PythonClassifier), res); } return res; }