예제 #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();
		}