aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-05-24 09:26:35 +1000
committerNeil <nyamatongwe@gmail.com>2014-05-24 09:26:35 +1000
commitf84a69d28698468076c0abc82fe9bb3ddf060a68 (patch)
tree02897201452cdb314c237ecec2b78fea2ee4b905
parente744d191cb5398139666d188dac7c94358ba512c (diff)
downloadscintilla-mirror-f84a69d28698468076c0abc82fe9bb3ddf060a68.tar.gz
Moving declaration inside loop to prevent a 'scope can be reduced' warning.
-rw-r--r--lexers/LexPS.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/lexers/LexPS.cxx b/lexers/LexPS.cxx
index 3661c4b66..ae2635368 100644
--- a/lexers/LexPS.cxx
+++ b/lexers/LexPS.cxx
@@ -296,11 +296,10 @@ static void FoldPSDoc(unsigned int startPos, int length, int, WordList *[],
int levelNext = levelCurrent;
char chNext = styler[startPos];
int styleNext = styler.StyleAt(startPos);
- int style;
for (unsigned int i = startPos; i < endPos; i++) {
char ch = chNext;
chNext = styler.SafeGetCharAt(i + 1);
- style = styleNext;
+ int style = styleNext;
styleNext = styler.StyleAt(i + 1);
bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); //mac??
if ((style & 31) == SCE_PS_PAREN_PROC) {