aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexPython.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2003-02-17 11:18:11 +0000
committernyamatongwe <unknown>2003-02-17 11:18:11 +0000
commitbb028fe06a4e642aa20f72136c2deaf312ba61b9 (patch)
tree045f6c279f221341f136acd2d2cdd2e8db3a65f8 /src/LexPython.cxx
parentd9b3f2fe99e4bb7fb6649eee27382f25f20a4146 (diff)
downloadscintilla-mirror-bb028fe06a4e642aa20f72136c2deaf312ba61b9.tar.gz
Upgraded keyword list descriptions from Brian Quinlan.
Diffstat (limited to 'src/LexPython.cxx')
-rw-r--r--src/LexPython.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/LexPython.cxx b/src/LexPython.cxx
index a14570a6a..47974d1bc 100644
--- a/src/LexPython.cxx
+++ b/src/LexPython.cxx
@@ -373,39 +373,39 @@ static void FoldPyDoc(unsigned int startPos, int length, int /*initStyle - unuse
lev = lev + 1;
}
- // Skip past any blank lines for next indent level info; we skip also
+ // Skip past any blank lines for next indent level info; we skip also
// comments (all comments, not just those starting in column 0)
// which effectively folds them into surrounding code rather
// than screwing up folding.
-
+
while (!quote &&
(lineNext < docLines) &&
((indentNext & SC_FOLDLEVELWHITEFLAG) ||
(lineNext <= docLines && IsCommentLine(lineNext, styler)))) {
-
+
lineNext++;
indentNext = styler.IndentAmount(lineNext, &spaceFlags, NULL);
}
-
+
const int levelAfterComments = indentNext & SC_FOLDLEVELNUMBERMASK;
const int levelBeforeComments = Platform::Maximum(indentCurrentLevel,levelAfterComments);
-
+
// Now set all the indent levels on the lines we skipped
// Do this from end to start. Once we encounter one line
// which is indented more than the line after the end of
// the comment-block, use the level of the block before
-
+
int skipLine = lineNext;
int skipLevel = levelAfterComments;
-
+
while (--skipLine > lineCurrent) {
int skipLineIndent = styler.IndentAmount(skipLine, &spaceFlags, NULL);
-
+
if ((skipLineIndent & SC_FOLDLEVELNUMBERMASK) > levelAfterComments)
skipLevel = levelBeforeComments;
-
+
int whiteFlag = skipLineIndent & SC_FOLDLEVELWHITEFLAG;
-
+
styler.SetLevel(skipLine, skipLevel | whiteFlag);
}
@@ -431,7 +431,7 @@ static void FoldPyDoc(unsigned int startPos, int length, int /*initStyle - unuse
}
static const char * const pythonWordListDesc[] = {
- "Python keywords",
+ "Keywords",
0
};