Skip to content

Commit 937520c

Browse files
committed
issue #11031 extra WS in @brief docu block break layout
Special handling of space (but prevent when running till end of line, hence RLopt1)
1 parent 14fc65f commit 937520c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/commentcnv.l

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,11 @@ CPPC "/\/"
241241
242242
// Optional any character
243243
ANYopt .*
244-
245244
// Optional white space
246245
WSopt [ \t\r]*
247246
// readline non special
248-
RLopt [^\\@<\n\*\/`]*
247+
RLopt [^ \\@<\n\*\/`]*
248+
RLopt1 [^\\@<\n\*\/`]*
249249
// Optional slash
250250
SLASHopt [/]*
251251
@@ -1061,7 +1061,7 @@ SLASHopt [/]*
10611061
<ReadLine,CopyLine>{RLopt} {
10621062
copyToOutput(yyscanner,yytext,yyleng);
10631063
}
1064-
<ReadLine,CopyLine>{RLopt}/\n {
1064+
<ReadLine,CopyLine>{RLopt1}/\n {
10651065
copyToOutput(yyscanner,yytext,yyleng);
10661066
yyextra->insertCppCommentMarker=false;
10671067
BEGIN(yyextra->readLineCtx);

0 commit comments

Comments
 (0)