diff options
author | nyamatongwe <unknown> | 2010-10-20 14:53:55 +1100 |
---|---|---|
committer | nyamatongwe <unknown> | 2010-10-20 14:53:55 +1100 |
commit | 85c776304cdd0a3a48f1a5dba42d89cea9665d9a (patch) | |
tree | abcf521db74366078fd86224dc946a61ee88e373 /lexers/LexRuby.cxx | |
parent | 52e2182d891107cfbf8f00cd902b34b812ddc2ce (diff) | |
download | scintilla-mirror-85c776304cdd0a3a48f1a5dba42d89cea9665d9a.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 { |