diff options
author | nyamatongwe <devnull@localhost> | 2002-02-12 10:35:17 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2002-02-12 10:35:17 +0000 |
commit | a60206ecb6729cd1ee44a39aaf132cb60173b32d (patch) | |
tree | 3c82f9059fe7001e94745310b8eb4091a0d32bee /src/LexRuby.cxx | |
parent | 8fdc38b725ee9cc02900995e41fc9eb35305d611 (diff) | |
download | scintilla-mirror-a60206ecb6729cd1ee44a39aaf132cb60173b32d.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); } } |