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
pull/2378/merge
dail8859 8 years ago
parent 98a246c1e5
commit 91e81d9f50

@ -719,8 +719,8 @@ protected:
void setSqlLexer() {
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);
execute(SCI_SETPROPERTY, reinterpret_cast<WPARAM>("sql.backslash.escapes"), reinterpret_cast<LPARAM>(kbBackSlash ? "1" : "0"));
};
void setBashLexer() {

Loading…
Cancel
Save