diff options
-rw-r--r-- | src/LexLua.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/LexLua.cxx b/src/LexLua.cxx index b3a46ad34..c5801139a 100644 --- a/src/LexLua.cxx +++ b/src/LexLua.cxx @@ -149,7 +149,10 @@ static void ColouriseLuaDoc( // We stop the number definition on non-numerical non-dot non-eE non-sign non-hexdigit char if (!IsANumberChar(sc.ch)) { sc.SetState(SCE_LUA_DEFAULT); - } + } else if (sc.ch == '-' || sc.ch == '+') { + if (sc.chPrev != 'E' && sc.chPrev != 'e') + sc.SetState(SCE_LUA_DEFAULT); + } } else if (sc.state == SCE_LUA_IDENTIFIER) { if (!IsAWordChar(sc.ch) || sc.Match('.', '.')) { char s[100]; |