aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexSQL.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/LexSQL.cxx')
-rw-r--r--src/LexSQL.cxx20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/LexSQL.cxx b/src/LexSQL.cxx
index 5717f2b26..d8e14b9eb 100644
--- a/src/LexSQL.cxx
+++ b/src/LexSQL.cxx
@@ -60,27 +60,7 @@ static void ColouriseSQLDoc(unsigned int startPos, int length, int initStyle, Wo
bool sqlBackslashEscapes = styler.GetPropertyInt("sql.backslash.escapes", 0) != 0;
bool sqlBackticksIdentifier = styler.GetPropertyInt("lexer.sql.backticks.identifier", 0) != 0;
int styleBeforeDCKeyword = SCE_SQL_DEFAULT;
- bool fold = styler.GetPropertyInt("fold") != 0;
- int lineCurrent = styler.GetLine(startPos);
-
for (; sc.More(); sc.Forward()) {
- // Fold based on indentation
- if (sc.atLineStart) {
- int spaceFlags = 0;
- int indentCurrent = styler.IndentAmount(lineCurrent, &spaceFlags);
- int level = indentCurrent;
- if (!(indentCurrent & SC_FOLDLEVELWHITEFLAG)) {
- // Only non whitespace lines can be headers
- int indentNext = styler.IndentAmount(lineCurrent + 1, &spaceFlags);
- if (indentCurrent < (indentNext & ~SC_FOLDLEVELWHITEFLAG)) {
- level |= SC_FOLDLEVELHEADERFLAG;
- }
- }
- if (fold) {
- styler.SetLevel(lineCurrent, level);
- }
- }
-
// Determine if the current state should terminate.
switch (sc.state) {
case SCE_SQL_OPERATOR: