From 85c776304cdd0a3a48f1a5dba42d89cea9665d9a Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 20 Oct 2010 14:53:55 +1100 Subject: 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. --- lexers/LexRuby.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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 { -- cgit v1.2.3