From 056dee74549d6b6e5c7abba8725115501bcddc93 Mon Sep 17 00:00:00 2001 From: oirfeodent Date: Mon, 3 Jul 2017 05:45:07 -0700 Subject: SCE_BAAN_NUMBER was not highlighted, if followed by an operator... This Bug is fixed. --- doc/ScintillaHistory.html | 3 +++ lexers/LexBaan.cxx | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index ab34f6fa6..b654f0ed9 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -553,6 +553,9 @@ 'Ctrl+L|SCI_LINEDELETE|'.
  • + The Baan lexer correctly highlights numbers when followed by an operator. +
  • +
  • The Matlab lexer treats 'end' as a number rather than a keyword when used as a index. This also stops incorrect folding. Bug #1951. diff --git a/lexers/LexBaan.cxx b/lexers/LexBaan.cxx index 9d1f20972..30dc4dada 100644 --- a/lexers/LexBaan.cxx +++ b/lexers/LexBaan.cxx @@ -524,7 +524,7 @@ void SCI_METHOD LexerBaan::Lex(Sci_PositionU startPos, Sci_Position length, int sc.SetState(SCE_BAAN_DEFAULT); break; case SCE_BAAN_NUMBER: - if (IsASpaceOrTab(sc.ch) || sc.ch == '\r' || sc.ch == '\n') { + if (IsASpaceOrTab(sc.ch) || sc.ch == '\r' || sc.ch == '\n' || IsAnOperator(sc.ch)) { sc.SetState(SCE_BAAN_DEFAULT); } else if ((numberIsHex && !(MakeLowerCase(sc.ch) == 'x' || MakeLowerCase(sc.ch) == 'e' || -- cgit v1.2.3