From 0352e449e0c19b10fee7ebf4bba9b9adc7f8a396 Mon Sep 17 00:00:00 2001 From: cxl Date: Tue, 14 Oct 2014 17:54:20 +0000 Subject: [PATCH] ide: LogSyntax highlighting improved git-svn-id: svn://ultimatepp.org/upp/trunk@7781 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/CodeEditor/LogSyntax.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 == '_') {