diff options
author | nyamatongwe <devnull@localhost> | 2003-02-17 11:18:11 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2003-02-17 11:18:11 +0000 |
commit | 2a25b067f78f395392499ac9f19a8028d847d07e (patch) | |
tree | 045f6c279f221341f136acd2d2cdd2e8db3a65f8 /src/LexPython.cxx | |
parent | 0b5372d287924ae28c2b869f6edf2c03035872c8 (diff) | |
download | scintilla-mirror-2a25b067f78f395392499ac9f19a8028d847d07e.tar.gz |
Upgraded keyword list descriptions from Brian Quinlan.
Diffstat (limited to 'src/LexPython.cxx')
-rw-r--r-- | src/LexPython.cxx | 22 |
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 }; |