From fb799d1e2945952169cf2d2f67a36017edadfafd Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Wed, 30 Jul 2014 03:14:08 +0200 Subject: Ruby: fix theoretical missing assignment and remove dead one --- lexers/LexRuby.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3