From 8ec2442ab4a0a8d568b970281aded681634f1cf1 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 7 Jun 2007 11:29:09 +0000 Subject: Patch from Kein-Hong Man fixes a CRLF glitch in LexPS. --- src/LexPS.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/LexPS.cxx b/src/LexPS.cxx index ff4521769..2edcff150 100644 --- a/src/LexPS.cxx +++ b/src/LexPS.cxx @@ -107,7 +107,7 @@ static void ColourisePSDoc( sc.SetState(SCE_C_DEFAULT); } else if (sc.atLineEnd) { sc.SetState(SCE_C_DEFAULT); - } else if (IsAWhitespaceChar(sc.ch)) { + } else if (IsAWhitespaceChar(sc.ch) && sc.ch != '\r') { sc.ChangeState(SCE_PS_COMMENT); } } else if (sc.state == SCE_PS_NUMBER) { -- cgit v1.2.3