From dcf614b69ebfebbd9dd10e8ba3cf36f3029a196f Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 26 Nov 2000 01:32:57 +0000 Subject: Patches from Philippe to improve Lua lexer, handle '\' continuation at end of line inside strings and to allow 5 digit line numbers when printing. --- src/LexCPP.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/LexCPP.cxx') diff --git a/src/LexCPP.cxx b/src/LexCPP.cxx index bf70b0c81..014b844a7 100644 --- a/src/LexCPP.cxx +++ b/src/LexCPP.cxx @@ -216,7 +216,7 @@ static void ColouriseCppDoc(unsigned int startPos, int length, int initStyle, Wo } else if (ch == '\"') { styler.ColourTo(i, state); state = SCE_C_DEFAULT; - } else if (chNext == '\r' || chNext == '\n') { + } else if ((chNext == '\r' || chNext == '\n') && (chPrev != '\\')) { styler.ColourTo(i-1, SCE_C_STRINGEOL); state = SCE_C_STRINGEOL; } -- cgit v1.2.3