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
This commit is contained in:
dail8859 2016-10-03 20:04:40 -04:00
parent 98a246c1e5
commit 91e81d9f50

View File

@ -719,8 +719,8 @@ protected:
void setSqlLexer() { void setSqlLexer() {
const bool kbBackSlash = NppParameters::getInstance()->getNppGUI()._backSlashIsEscapeCharacterForSql; const bool kbBackSlash = NppParameters::getInstance()->getNppGUI()._backSlashIsEscapeCharacterForSql;
execute(SCI_SETPROPERTY, reinterpret_cast<WPARAM>("sql.backslash.escapes"), reinterpret_cast<LPARAM>(kbBackSlash ? "1" : "0"));
setLexer(SCLEX_SQL, L_SQL, LIST_0); setLexer(SCLEX_SQL, L_SQL, LIST_0);
execute(SCI_SETPROPERTY, reinterpret_cast<WPARAM>("sql.backslash.escapes"), reinterpret_cast<LPARAM>(kbBackSlash ? "1" : "0"));
}; };
void setBashLexer() { void setBashLexer() {