﻿using System.ComponentModel.Composition;
using System.Windows.Media;
using Microsoft.VisualStudio.Text.Classification;
using Microsoft.VisualStudio.Utilities;

namespace Paket.VisualStudio.IntelliSense.Classifier
{
    internal static class PaketClassificationTypes
    {
        public const string Keyword = "Paket Token";

        [Export, Name(Keyword)]
        internal static ClassificationTypeDefinition PaketClassificationBold = null;
    }

    [Export(typeof(EditorFormatDefinition))]
    [ClassificationType(ClassificationTypeNames = PaketClassificationTypes.Keyword)]
    [Name(PaketClassificationTypes.Keyword)]
    [Order(After = Priority.High)]
    [UserVisible(true)]
    internal sealed class PaketClassifierFormatDefinition : ClassificationFormatDefinition
    {
        public PaketClassifierFormatDefinition()
        {
            IsBold = true;
            ForegroundColor = Colors.Orange;
            DisplayName = PaketClassificationTypes.Keyword;
        }
    }
}
