From 3f2dfe28853e459227da8397faa2ddbda331dc32 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 17 Oct 2013 09:45:03 +1100 Subject: Bug [#1538]. PP-line comments lost from EOL string. From Alpha. --- lexers/LexCPP.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lexers/LexCPP.cxx') diff --git a/lexers/LexCPP.cxx b/lexers/LexCPP.cxx index 6f7afc23d..edf415ca4 100644 --- a/lexers/LexCPP.cxx +++ b/lexers/LexCPP.cxx @@ -685,7 +685,7 @@ void SCI_METHOD LexerCPP::Lex(unsigned int startPos, int length, int initStyle, if (IsASpace(sc.ch)) { sc.SetState(SCE_C_DEFAULT|activitySet); } - } else if (isStringInPreprocessor && (sc.Match('>') || sc.Match('\"'))) { + } else if (isStringInPreprocessor && (sc.Match('>') || sc.Match('\"') || sc.atLineEnd)) { isStringInPreprocessor = false; } else if (!isStringInPreprocessor) { if ((isIncludePreprocessor && sc.Match('<')) || sc.Match('\"')) { -- cgit v1.2.3