public void ConfigureLanguage() { if ((this._query.QueryKind >= QueryLanguage.FSharpExpression) && this._document.get_SpanIndicatorLayers().Contains("Syntax error")) { this._document.get_SpanIndicatorLayers().get_Item("Syntax error").Clear(); } QueryCompiler compiler = QueryCompiler.Create(this._query, false); this._language = this.GetLanguage(); this._document.ResetLanguage(); if (this._query.QueryKind == QueryLanguage.SQL) { string str; this._document.set_FooterText((string)(str = null)); this._document.set_HeaderText(str); } else { this._document.set_HeaderText(compiler.GetHeader(this._query)); this._document.set_FooterText(compiler.GetFooter(this._query)); } this._document.set_Language(this._language); this._document.Reparse(); }