ecere/gui/EditBox: (#670) Yet another number syntax highlighting fix
authorJerome St-Louis <jerome@ecere.com>
Fri, 9 Aug 2013 06:11:06 +0000 (02:11 -0400)
committerJerome St-Louis <jerome@ecere.com>
Fri, 9 Aug 2013 06:11:06 +0000 (02:11 -0400)
ecere/src/gui/controls/EditBox.ec

index 498a3cd..dc6546b 100644 (file)
@@ -1724,7 +1724,7 @@ private:
                         {
                            char * dot = strchr(word, '.');
                            char * s = null;
-                           if(dot)
+                           if(dot && dot == word + wordLen)
                               strtod(dot+1, &s);
                            else
                               strtod(word, &s);