diff --git a/uppsrc/CodeEditor/LogSyntax.cpp b/uppsrc/CodeEditor/LogSyntax.cpp index 5354e30f6..7fa18bd19 100644 --- a/uppsrc/CodeEditor/LogSyntax.cpp +++ b/uppsrc/CodeEditor/LogSyntax.cpp @@ -17,7 +17,8 @@ void LogSyntax::Highlight(const wchar *s, const wchar *end, HighlightOutput& hls fp = fp || *s == '.' || *s == 'e'; s++; } - hls.Put(int(s - s0), hl_style[fp ? INK_CONST_FLOAT : INK_CONST_INT]); + hls.Put(int(s - s0), hl_style[(IsAlpha(*s) || *s == '_') && (IsAlNum(s[1]) || s[1] == '_') ? INK_NORMAL // More likely a hexdump or something + : fp ? INK_CONST_FLOAT : INK_CONST_INT]); } else if(IsAlpha(*s) || *s == '_') {