From c6b3edf1a74e7830b830ee125440cb1a688acdbf Mon Sep 17 00:00:00 2001 From: oirfeodent Date: Fri, 12 May 2017 17:02:51 -0700 Subject: If "Show End of Line" is enabled, using sc.atLineEnd causes to be coloured as comment in windows due to . Checking for or directly should work for Windows/Linux/Mac. Escape Sequence corrected. --- lexers/LexBaan.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 & Praveen Ambekar +// 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; -- cgit v1.2.3