internal SharpYamlEditor(IClassificationTypeRegistryService registry) { schema = new CoreSchema(); _comment = registry.GetClassificationType(PredefinedClassificationTypeNames.Comment); _anchor = registry.GetClassificationType("YamlAnchor"); _alias = registry.GetClassificationType("YamlAlias"); _key = registry.GetClassificationType("YamlKey"); _value = registry.GetClassificationType("YamlValue"); _number = registry.GetClassificationType("YamlNumber"); _string = registry.GetClassificationType("YamlString"); _tag = registry.GetClassificationType("YamlTag"); _symbol = registry.GetClassificationType("YamlSymbol"); _directive = registry.GetClassificationType("YamlDirective"); _tab = registry.GetClassificationType("YamlTab"); }
internal AssetObjectEditor(IClassificationTypeRegistryService registry) { schema = new CoreSchema(); _comment = registry.GetClassificationType(PredefinedClassificationTypeNames.Comment); _anchor = registry.GetClassificationType(AssetObjectDefinitions.AnchorClassificationName); _alias = registry.GetClassificationType(AssetObjectDefinitions.AliasClassificationName); _key = registry.GetClassificationType(AssetObjectDefinitions.KeyClassificationName); _value = registry.GetClassificationType(PredefinedClassificationTypeNames.Identifier); _number = registry.GetClassificationType(AssetObjectDefinitions.NumberClassificationName); _string = registry.GetClassificationType(PredefinedClassificationTypeNames.String); _bool = registry.GetClassificationType(PredefinedClassificationTypeNames.Keyword); _tag = registry.GetClassificationType(PredefinedClassificationTypeNames.SymbolDefinition); _symbol = registry.GetClassificationType(PredefinedClassificationTypeNames.Operator); _directive = registry.GetClassificationType(PredefinedClassificationTypeNames.PreprocessorKeyword); _tab = registry.GetClassificationType(AssetObjectDefinitions.ErrorClassificationName); }
public void TestCoreSchema() { var schema = new CoreSchema(); TestCoreSchemaCommon(schema); }