internal Ps1TokenTagger(ITextBuffer buffer) { _buffer = buffer; _Ps1ColorEngine = new TextHighlighterExtension.Ps1ColorEngine( ConfigurationEngine.Singleton.GetPowerShellKeywords().Keys.ToList(), ConfigurationEngine.Singleton.GetPowerShellCommands().Keys.ToList() ); }
internal Ps1Classifier(ITextBuffer buffer, ITagAggregator <Ps1KeywordTokenTag> batTagAggregator, IClassificationTypeRegistryService typeService) { this._buffer = buffer; this._aggregator = batTagAggregator; this._PunctationClassificationType = typeService.GetClassificationType("coloredtext." + ConfigurationEngine.Singleton.GetPowerShellColor("Punctuation")); this._KeyWordClassificationType = typeService.GetClassificationType("coloredtext." + ConfigurationEngine.Singleton.GetPowerShellColor("Keyword")); this._CommandClassificationType = typeService.GetClassificationType("coloredtext." + ConfigurationEngine.Singleton.GetPowerShellColor("Command")); this._CommentClassificationType = typeService.GetClassificationType("coloredtext." + ConfigurationEngine.Singleton.GetPowerShellColor("Comment")); this._ParameterClassificationType = typeService.GetClassificationType("coloredtext." + ConfigurationEngine.Singleton.GetPowerShellColor("Parameter")); this._VariableClassificationType = typeService.GetClassificationType("coloredtext." + ConfigurationEngine.Singleton.GetPowerShellColor("Variable")); this._StringClassificationType = typeService.GetClassificationType("coloredtext." + ConfigurationEngine.Singleton.GetPowerShellColor("String")); this._DefaultClassificationType = typeService.GetClassificationType("coloredtext." + ConfigurationEngine.Singleton.GetPowerShellColor("Default")); this._Ps1ColorEngine = new TextHighlighterExtension.Ps1ColorEngine( ConfigurationEngine.Singleton.GetPowerShellKeywords().Keys.ToList(), ConfigurationEngine.Singleton.GetPowerShellCommands().Keys.ToList() ); }