diff options
| author | ActiveState <devnull@localhost> | 2015-10-13 12:16:26 +1100 |
|---|---|---|
| committer | ActiveState <devnull@localhost> | 2015-10-13 12:16:26 +1100 |
| commit | 8a3fe684b8bcdf60b10876391c698b89c29b866c (patch) | |
| tree | 1e23f3cbc34a43b8eecf326956b861a42ba8c845 /lexers/LexCoffeeScript.cxx | |
| parent | ccdefb79573420faa935ece1491bb23859d743f9 (diff) | |
| download | scintilla-mirror-8a3fe684b8bcdf60b10876391c698b89c29b866c.tar.gz | |
Bug [#1765]. CoffeeScript lexer highlights ranges correctly.
Diffstat (limited to 'lexers/LexCoffeeScript.cxx')
| -rw-r--r-- | lexers/LexCoffeeScript.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lexers/LexCoffeeScript.cxx b/lexers/LexCoffeeScript.cxx index 2c3a8802c..f32560016 100644 --- a/lexers/LexCoffeeScript.cxx +++ b/lexers/LexCoffeeScript.cxx @@ -252,6 +252,10 @@ static void ColouriseCoffeeScriptDoc(Sci_PositionU startPos, Sci_Position length } } else if (isoperator(static_cast<char>(sc.ch))) { sc.SetState(SCE_COFFEESCRIPT_OPERATOR); + // Handle '..' and '...' operators correctly. + if (sc.ch == '.') { + for (int i = 0; i < 2 && sc.chNext == '.'; i++, sc.Forward()) ; + } } } |
