mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-27 15:54:17 +02:00
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:
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…
x
Reference in New Issue
Block a user