diff options
author | nyamatongwe <devnull@localhost> | 2010-10-20 14:53:55 +1100 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2010-10-20 14:53:55 +1100 |
commit | bddac88e201ea86920ef0dc41e13423aad5dbb80 (patch) | |
tree | 9bbaece9173c34646b8416557b8759c0999fa515 /lexers/LexRuby.cxx | |
parent | fd56cc023789d666b53803983979e7ac9fd0d428 (diff) | |
download | scintilla-mirror-bddac88e201ea86920ef0dc41e13423aad5dbb80.tar.gz |
Treat all dots as operators in ranges 1..2 and 1...2 rather than
treating the first dot as part of a number.
Fixes part of bug #3058496 and patch came from bug #2093767.
Diffstat (limited to 'lexers/LexRuby.cxx')
-rw-r--r-- | lexers/LexRuby.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lexers/LexRuby.cxx b/lexers/LexRuby.cxx index af8535243..a77ff13ee 100644 --- a/lexers/LexRuby.cxx +++ b/lexers/LexRuby.cxx @@ -1129,6 +1129,10 @@ static void ColouriseRbDoc(unsigned int startPos, int length, int initStyle, } } else if (isSafeAlnumOrHigh(ch) || ch == '_') { // Keep going + } else if (ch == '.' && chNext == '.') { + ++numDots; + styler.ColourTo(i - 1, state); + redo_char(i, ch, chNext, chNext2, state); // pass by ref } else if (ch == '.' && ++numDots == 1) { // Keep going } else { |