diff options
-rw-r--r-- | doc/ScintillaHistory.html | 3 | ||||
-rw-r--r-- | lexers/LexBaan.cxx | 2 |
2 files changed, 4 insertions, 1 deletions
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|'. </li> <li> + The Baan lexer correctly highlights numbers when followed by an operator. + </li> + <li> The Matlab lexer treats 'end' as a number rather than a keyword when used as a index. This also stops incorrect folding. <a href="http://sourceforge.net/p/scintilla/bugs/1951/">Bug #1951</a>. 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' || |