File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 18
18
%option prefix=" commentcnvYY"
19
19
%option reentrant
20
20
%option extra-type=" struct commentcnvYY_state *"
21
+ %top{
22
+ #include < stdint.h>
23
+ }
21
24
22
25
%{
23
26
@@ -349,15 +352,15 @@ MAILADR ("mailto:")?[a-z_A-Z0-9.+-]+"@"[a-z_A-Z0-9-]+("."[a-z_A-Z0-9\-]+)+[a-z
349
352
yyextra->blockName =&yytext[1 ];
350
353
BEGIN (VerbatimCode);
351
354
}
352
- <CComment,ReadLine>(" ```" [`]*|" ~~~" [~]*) { /* start of markdown code block */
355
+ <CComment,ReadLine>^[ \t]* (" ```" [`]*|" ~~~" [~]*) { /* start of markdown code block */
353
356
if (!Config_getBool (MARKDOWN_SUPPORT))
354
357
{
355
358
REJECT;
356
359
}
357
360
copyToOutput (yyscanner,yytext,(int )yyleng);
358
361
yyextra->lastCommentContext = YY_START;
359
362
yyextra->javaBlock =0 ;
360
- yyextra->blockName =QCString (yytext).left (3 );
363
+ yyextra->blockName =QCString (yytext).stripWhiteSpace (). left (3 );
361
364
BEGIN (VerbatimCode);
362
365
}
363
366
<CComment,ReadLine>[\\@](" dot" |" code" |" msc" |" startuml" )/[^a-z_A-Z0-9 ] { /* start of a verbatim block */
@@ -475,7 +478,7 @@ MAILADR ("mailto:")?[a-z_A-Z0-9.+-]+"@"[a-z_A-Z0-9-]+("."[a-z_A-Z0-9\-]+)+[a-z
475
478
}
476
479
}
477
480
}
478
- <Verbatim,VerbatimCode>[^@\/\\\n{}]* { /* any character not a backslash or new line or } */
481
+ <Verbatim,VerbatimCode>[^`~ @\/\\\n{}]* { /* any character not a backslash or new line or } */
479
482
copyToOutput (yyscanner,yytext,(int )yyleng);
480
483
}
481
484
<Verbatim,VerbatimCode>\n { /* new line in verbatim block */
You can’t perform that action at this time.
0 commit comments