diff options
author | nyamatongwe <unknown> | 2002-02-12 10:35:17 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2002-02-12 10:35:17 +0000 |
commit | 9198c2e9fc836bb4b6b5369b5e3877e4574e5bae (patch) | |
tree | 3c82f9059fe7001e94745310b8eb4091a0d32bee /src/LexRuby.cxx | |
parent | 04bdf3169b2c78aa5bd32af228e777c76f50e1ee (diff) | |
download | scintilla-mirror-9198c2e9fc836bb4b6b5369b5e3877e4574e5bae.tar.gz |
Minor fixes to lexers.
Diffstat (limited to 'src/LexRuby.cxx')
-rw-r--r-- | src/LexRuby.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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); } } |