From 0a42f39c2ede3efac29478571a9713f20294f7e8 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 2 Aug 2002 04:36:43 +0000 Subject: Jump out of preprocessor mode when a comment, // or /*, is found. --- src/LexCPP.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/LexCPP.cxx b/src/LexCPP.cxx index c1bb1ff9a..39f458da7 100644 --- a/src/LexCPP.cxx +++ b/src/LexCPP.cxx @@ -113,7 +113,7 @@ static void ColouriseCppDoc(unsigned int startPos, int length, int initStyle, Wo sc.SetState(SCE_C_DEFAULT); } } else { - if (sc.atLineEnd) { + if ((sc.atLineEnd) || (sc.Match('/', '*')) || (sc.Match('/', '/'))) { sc.SetState(SCE_C_DEFAULT); } } -- cgit v1.2.3