コード例 #1
0
        public void OnEditorDocumentTextChanged(object sender, EditorSnapshotChangedEventArgs e)
        {
            string typedText = e.TypedText;

            if (typedText != null && typedText == ".")
            {
                ITextSnapshotReader reader = this.nitriqSyntaxEditor_0.ActiveView.GetReader();
                reader.ReadCharacterReverseThrough('.');
                IToken token = reader.ReadTokenReverse();
                if (token != null)
                {
                    this.method_2(false, reader.TokenText);
                }
            }
        }