From 9198c2e9fc836bb4b6b5369b5e3877e4574e5bae Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 12 Feb 2002 10:35:17 +0000 Subject: Minor fixes to lexers. --- src/LexRuby.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/LexRuby.cxx') diff --git a/src/LexRuby.cxx b/src/LexRuby.cxx index 806a1991f..fe7497404 100644 --- a/src/LexRuby.cxx +++ b/src/LexRuby.cxx @@ -294,9 +294,9 @@ static void ColouriseRbDoc(unsigned int startPos, int length, int initStyle, chPrev = ch; } if (state == SCE_P_WORD) { - ClassifyWordRb(styler.GetStartSegment(), lengthDoc, keywords, styler, prevWord); + ClassifyWordRb(styler.GetStartSegment(), lengthDoc-1, keywords, styler, prevWord); } else { - styler.ColourTo(lengthDoc, state); + styler.ColourTo(lengthDoc-1, state); } } -- cgit v1.2.3