Cpp: Also add closing parenthesis for doxygen comments

Change-Id: Iacef35d0cbbeda743f97dd79f40a37faa0c996ad
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
David Schulz
2021-02-04 14:16:38 +01:00
parent 4ae93a9d27
commit 48422187fc

View File

@@ -183,7 +183,8 @@ void CppHighlighter::highlightBlock(const QString &text)
// - the line starts in a C Comment (initalState != 0)
// - the first token of the line is a T_COMMENT (i == 0 && tk.is(T_COMMENT))
// - is not a continuation line (tokens.size() > 1 || !state)
if (initialLexerState && i == 0 && tk.is(T_COMMENT) && (tokens.size() > 1 || !lexerState)) {
if (initialLexerState && i == 0 && (tk.is(T_COMMENT) || tk.is(T_DOXY_COMMENT))
&& (tokens.size() > 1 || !lexerState)) {
--braceDepth;
// unless we are at the end of the block, we reduce the folding indent
if (i == tokens.size()-1)