aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2006-05-15 12:56:43 +0000
committernyamatongwe <unknown>2006-05-15 12:56:43 +0000
commit34bafa918cc070010c5472493431d4e5b5dffb57 (patch)
tree477da9b39dc383035c98addead9340ec59b41471
parentfb7a1c839ce59df8423c94626cfabe9bf0e5c2e8 (diff)
downloadscintilla-mirror-34bafa918cc070010c5472493431d4e5b5dffb57.tar.gz
Patch from Philippe removes indentation based folding.
-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: