public Les2SyntaxForVS(VSBuffer ctx) : base(ctx) { var registry = ctx.VS.ClassificationRegistry; _preSufOpType = registry.GetClassificationType("LesPreSufOp"); _keywordTag = MakeTag(PredefinedClassificationTypeNames.Keyword); _callTargetTag = MakeTag("LoycCallTarget"); }
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(); }
internal EcsSyntaxForVS(VSBuffer ctx) : base(ctx) { _preprocessorType = ctx.VS.ClassificationRegistry.GetClassificationType("Preprocessor Keyword"); }
public SyntaxAnalyzerForVS(VSBuffer ctx) : base(ctx) { _parseHelper = new BackgroundAnalyzerForVS <SparseAList <EditorToken>, ParseResults>(ctx.Buffer, this, false); }
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(); }