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 | c7227c607ffe98325722e918506a4e39084c6c98 (patch) | |
tree | 271ac2f740bc7176ef4d87bf5eb90e468cd78a94 | |
parent | 3d8dc2f8fcd5408235eb2fee4e7d1ffd9ba67f95 (diff) | |
download | scintilla-mirror-c7227c607ffe98325722e918506a4e39084c6c98.tar.gz |
Bug [#1583]. Fix styling 0...myArray.length all as a number.
From Alpha.
-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; |