Пример #1
0
        public Les2SyntaxForVS(VSBuffer ctx) : base(ctx)
        {
            var registry = ctx.VS.ClassificationRegistry;

            _preSufOpType  = registry.GetClassificationType("LesPreSufOp");
            _keywordTag    = MakeTag(PredefinedClassificationTypeNames.Keyword);
            _callTargetTag = MakeTag("LoycCallTarget");
        }
Пример #2
0
        protected SyntaxClassifierForVS(VSBuffer ctx)
        {
            _ctx            = ctx;
            _wrappedBuffer  = new TextSnapshotAsSourceFile(Buffer.CurrentSnapshot);
            Buffer.Changed += OnTextBufferChanged;

            _lexerMessageSink = new MessageSinkFromDelegate((severity, context, fmt, args) => {
                if (severity >= Severity.Note)
                {
                    _lexerError = new LexerMessage {
                        OriginalValue = _lexerError,
                        Msg           = new LogMessage(severity, context, fmt, args)
                    }
                }
                ;
            });

            InitClassificationTypes();
        }
Пример #3
0
 internal EcsSyntaxForVS(VSBuffer ctx) : base(ctx)
 {
     _preprocessorType = ctx.VS.ClassificationRegistry.GetClassificationType("Preprocessor Keyword");
 }
Пример #4
0
 public SyntaxAnalyzerForVS(VSBuffer ctx)
     : base(ctx)
 {
     _parseHelper = new BackgroundAnalyzerForVS <SparseAList <EditorToken>, ParseResults>(ctx.Buffer, this, false);
 }
Пример #5
0
		internal EcsSyntaxForVS(VSBuffer ctx) : base(ctx)
		{
			_preprocessorType = ctx.VS.ClassificationRegistry.GetClassificationType("Preprocessor Keyword");
		}
Пример #6
0
		protected SyntaxClassifierForVS(VSBuffer ctx)
		{
			_ctx = ctx;
			_wrappedBuffer = new TextSnapshotAsSourceFile(Buffer.CurrentSnapshot);
			Buffer.Changed += OnTextBufferChanged;
			
			_lexerMessageSink = new MessageSinkFromDelegate((severity, context, fmt, args) => {
				if (severity >= Severity.Note)
					_lexerError = new LexerMessage {
						OriginalValue = _lexerError, 
						Msg = new MessageHolder.Message(severity, context, fmt, args)
					};
			});

			InitClassificationTypes();
		}