aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authoroirfeodent <unknown>2017-05-12 17:02:51 -0700
committeroirfeodent <unknown>2017-05-12 17:02:51 -0700
commitc6b3edf1a74e7830b830ee125440cb1a688acdbf (patch)
tree85ae97929830866e00c3ffa9ee7ed27932913291
parent103e0f9913655a803e46f37e17574c1441c795d4 (diff)
downloadscintilla-mirror-c6b3edf1a74e7830b830ee125440cb1a688acdbf.tar.gz
If "Show End of Line" is enabled, using sc.atLineEnd causes <CR> to be coloured as comment in windows due to <CR><LF>.
Checking for <CR> or <LF> directly should work for Windows/Linux/Mac. Escape Sequence corrected.
-rw-r--r--lexers/LexBaan.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/lexers/LexBaan.cxx b/lexers/LexBaan.cxx
index 38ee043e8..ddf5b9385 100644
--- a/lexers/LexBaan.cxx
+++ b/lexers/LexBaan.cxx
@@ -4,6 +4,7 @@
** Based heavily on LexCPP.cxx
**/
// Copyright 2001- by Vamsi Potluru <vamsi@who.net> & Praveen Ambekar <ambekarpraveen@yahoo.com>
+// Maintainer Email: oirfeodent@yahoo.co.in
// The License.txt file describes the conditions under which this software may be distributed.
// C standard library
@@ -606,7 +607,7 @@ void SCI_METHOD LexerBaan::Lex(Sci_PositionU startPos, Sci_Position length, int
}
break;
case SCE_BAAN_COMMENT:
- if (sc.atLineEnd) {
+ if (sc.ch == '\r' || sc.ch == '\n') {
sc.SetState(SCE_BAAN_DEFAULT);
}
break;