aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexCoffeeScript.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-03-17 09:41:16 +1100
committerNeil <nyamatongwe@gmail.com>2014-03-17 09:41:16 +1100
commita8830152eabf4cce72730c79b72ae13b5ad9b927 (patch)
treefd084cdf607b25211abba117d86949905de83cea /lexers/LexCoffeeScript.cxx
parentc020be96e4a6691d3634990e1c437f19553afeba (diff)
downloadscintilla-mirror-a8830152eabf4cce72730c79b72ae13b5ad9b927.tar.gz
Avoid warning about excessive variable scope.
Diffstat (limited to 'lexers/LexCoffeeScript.cxx')
-rw-r--r--lexers/LexCoffeeScript.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/lexers/LexCoffeeScript.cxx b/lexers/LexCoffeeScript.cxx
index c5ef0effa..fc9b4998a 100644
--- a/lexers/LexCoffeeScript.cxx
+++ b/lexers/LexCoffeeScript.cxx
@@ -66,9 +66,8 @@ static bool followsReturnKeyword(StyleContext &sc, Accessor &styler) {
int pos = (int) sc.currentPos;
int currentLine = styler.GetLine(pos);
int lineStartPos = styler.LineStart(currentLine);
- char ch;
while (--pos > lineStartPos) {
- ch = styler.SafeGetCharAt(pos);
+ char ch = styler.SafeGetCharAt(pos);
if (ch != ' ' && ch != '\t') {
break;
}