diff options
author | Neil <nyamatongwe@gmail.com> | 2014-03-17 09:01:53 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-03-17 09:01:53 +1100 |
commit | c020be96e4a6691d3634990e1c437f19553afeba (patch) | |
tree | a01773ce0f684e320702d96ed63f7956e5198426 /lexers/LexCoffeeScript.cxx | |
parent | 4c983727caf020962881912f62657cf9777715d0 (diff) | |
download | scintilla-mirror-c020be96e4a6691d3634990e1c437f19553afeba.tar.gz |
Bug [#1583]. Fix styling 0...myArray.length all as a number.
From Alpha.
Diffstat (limited to 'lexers/LexCoffeeScript.cxx')
-rw-r--r-- | lexers/LexCoffeeScript.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lexers/LexCoffeeScript.cxx b/lexers/LexCoffeeScript.cxx index def93599d..c5ef0effa 100644 --- a/lexers/LexCoffeeScript.cxx +++ b/lexers/LexCoffeeScript.cxx @@ -185,7 +185,7 @@ static void ColouriseCoffeeScriptDoc(unsigned int startPos, int length, int init break; case SCE_COFFEESCRIPT_NUMBER: // We accept almost anything because of hex. and number suffixes - if (!setWord.Contains(sc.ch)) { + if (!setWord.Contains(sc.ch) || sc.Match('.', '.')) { sc.SetState(SCE_COFFEESCRIPT_DEFAULT); } break; |