From 7d3dd47bf7cc4897c13fe6e8ba438610ed6ff5d8 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 29 Jun 2004 13:02:29 +0000 Subject: Patch from Hans Eckardt to not consider separator comment lines of all slashes as normal comments instead of doc comments. //////////////////////////////////////////// --- src/LexCPP.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/LexCPP.cxx') diff --git a/src/LexCPP.cxx b/src/LexCPP.cxx index 9c8ea416a..fedb978be 100644 --- a/src/LexCPP.cxx +++ b/src/LexCPP.cxx @@ -235,7 +235,8 @@ static void ColouriseCppDoc(unsigned int startPos, int length, int initStyle, Wo } sc.Forward(); // Eat the * so it isn't used for the end of the comment } else if (sc.Match('/', '/')) { - if (sc.Match("///") || sc.Match("//!")) // Support of Qt/Doxygen doc. style + if ((sc.Match("///") && !sc.Match("////")) || sc.Match("//!")) + // Support of Qt/Doxygen doc. style sc.SetState(SCE_C_COMMENTLINEDOC); else sc.SetState(SCE_C_COMMENTLINE); -- cgit v1.2.3