diff options
author | nyamatongwe <devnull@localhost> | 2008-12-23 23:52:01 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2008-12-23 23:52:01 +0000 |
commit | 53debf7f31f826fa086967b530c8775a75aa610f (patch) | |
tree | f69feb0f6a4567d2881a17ee4734906f4a626d2c /src/LexPascal.cxx | |
parent | 261e4529ceb56bd8a0ab00c5505174968f0ff245 (diff) | |
download | scintilla-mirror-53debf7f31f826fa086967b530c8775a75aa610f.tar.gz |
Fixes for GCC 4.3 warnings. The Pascal change fixes behaviour.
Diffstat (limited to 'src/LexPascal.cxx')
-rw-r--r-- | src/LexPascal.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/LexPascal.cxx b/src/LexPascal.cxx index 2cf1b40f2..371043d94 100644 --- a/src/LexPascal.cxx +++ b/src/LexPascal.cxx @@ -405,8 +405,8 @@ static unsigned int SkipWhiteSpace(unsigned int currentPos, unsigned int endPos, CharacterSet setWord(CharacterSet::setAlphaNum, "_"); unsigned int j = currentPos + 1; char ch = styler.SafeGetCharAt(j); - while ((j < endPos) && (IsASpaceOrTab(ch) || ch == '\r' || ch == '\n') || - IsStreamCommentStyle(styler.StyleAt(j)) || (includeChars && setWord.Contains(ch))) { + while ((j < endPos) && (IsASpaceOrTab(ch) || ch == '\r' || ch == '\n' || + IsStreamCommentStyle(styler.StyleAt(j)) || (includeChars && setWord.Contains(ch)))) { j++; ch = styler.SafeGetCharAt(j); } @@ -473,8 +473,8 @@ static void ClassifyPascalWordFoldPoint(int &levelCurrent, int &lineFoldStateCur bool ignoreKeyword = true; unsigned int j = lastStart - 1; char ch = styler.SafeGetCharAt(j); - while ((j >= startPos) && (IsASpaceOrTab(ch) || ch == '\r' || ch == '\n') || - IsStreamCommentStyle(styler.StyleAt(j))) { + while ((j >= startPos) && (IsASpaceOrTab(ch) || ch == '\r' || ch == '\n' || + IsStreamCommentStyle(styler.StyleAt(j)))) { j--; ch = styler.SafeGetCharAt(j); } |