mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
ide: LogSyntax highlighting improved
git-svn-id: svn://ultimatepp.org/upp/trunk@7781 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
5656356b66
commit
5f85efdd7f
1 changed files with 2 additions and 1 deletions
|
|
@ -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 == '_') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue