From 91e81d9f5026fd3236d31372cd80a37f2c276d14 Mon Sep 17 00:00:00 2001 From: dail8859 Date: Mon, 3 Oct 2016 20:04:40 -0400 Subject: [PATCH] Set SQL lexer property after setting lexer This way it respects the property's value the first time using the lexer. Closes #2353, Closes #1330, Closes #1253, Closes #704, Closes #2385 --- PowerEditor/src/ScitillaComponent/ScintillaEditView.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerEditor/src/ScitillaComponent/ScintillaEditView.h b/PowerEditor/src/ScitillaComponent/ScintillaEditView.h index ff1bafb24..40b304596 100644 --- a/PowerEditor/src/ScitillaComponent/ScintillaEditView.h +++ b/PowerEditor/src/ScitillaComponent/ScintillaEditView.h @@ -719,8 +719,8 @@ protected: void setSqlLexer() { const bool kbBackSlash = NppParameters::getInstance()->getNppGUI()._backSlashIsEscapeCharacterForSql; - execute(SCI_SETPROPERTY, reinterpret_cast("sql.backslash.escapes"), reinterpret_cast(kbBackSlash ? "1" : "0")); setLexer(SCLEX_SQL, L_SQL, LIST_0); + execute(SCI_SETPROPERTY, reinterpret_cast("sql.backslash.escapes"), reinterpret_cast(kbBackSlash ? "1" : "0")); }; void setBashLexer() {