aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorColomban Wendling <ban@herbesfolles.org>2014-07-30 03:14:08 +0200
committerColomban Wendling <ban@herbesfolles.org>2014-07-30 03:14:08 +0200
commitdc1fdebe5dcd13a7d6f937cf09432a14d44ba956 (patch)
tree60eb927321f592c3e527e11268a96560196b7043
parent0b5e8a111bcbec1ad40d0ac01b75197d371b1a1c (diff)
downloadscintilla-mirror-dc1fdebe5dcd13a7d6f937cf09432a14d44ba956.tar.gz
Ruby: fix theoretical missing assignment and remove dead one
-rw-r--r--lexers/LexRuby.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/lexers/LexRuby.cxx b/lexers/LexRuby.cxx
index e9b3cfb0e..d4c3fad25 100644
--- a/lexers/LexRuby.cxx
+++ b/lexers/LexRuby.cxx
@@ -898,8 +898,8 @@ static void ColouriseRbDoc(unsigned int startPos, int length, int initStyle,
state = SCE_RB_DEFAULT;
}
i += 3;
+ ch = styler.SafeGetCharAt(i);
chNext = styler.SafeGetCharAt(i+1);
- chNext2 = styler.SafeGetCharAt(i+2);
} else if (chNext == '$' && strchr("_~*$?!@/\\;,.=:<>\"&`'+", chNext2)) {
// single-character special global variables
i += 2;