ide: LogSyntax highlighting improved

git-svn-id: svn://ultimatepp.org/upp/trunk@7781 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-10-14 17:54:20 +00:00
parent 5656356b66
commit 5f85efdd7f

View file

@ -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 == '_') {