aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authoroirfeodent <unknown>2017-07-03 05:45:07 -0700
committeroirfeodent <unknown>2017-07-03 05:45:07 -0700
commit056dee74549d6b6e5c7abba8725115501bcddc93 (patch)
treeded1f0584c6d683917380df16e23be1fb556e455
parent8918bc9ca9d996d87f30a38fadfe3ae1dd180a5d (diff)
downloadscintilla-mirror-056dee74549d6b6e5c7abba8725115501bcddc93.tar.gz
SCE_BAAN_NUMBER was not highlighted, if followed by an operator... This Bug is fixed.
-rw-r--r--doc/ScintillaHistory.html3
-rw-r--r--lexers/LexBaan.cxx2
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' ||