File tree Expand file tree Collapse file tree 3 files changed +25
-4
lines changed Expand file tree Collapse file tree 3 files changed +25
-4
lines changed Original file line number Diff line number Diff line change @@ -1022,6 +1022,27 @@ SLASHopt [/]*
1022
1022
<CComment,CNComment,ReadLine>[\\@][\\@][~a-z_A-Z][a-z_A-Z0-9 ]*[ \t]* { // escaped command
1023
1023
copyToOutput (yyscanner,yytext,yyleng);
1024
1024
}
1025
+
1026
+ <CComment,ReadLine,IncludeFile>[ \t][ \t][ \t][ \t][\\@](" include{" {B}*" doc" {B}*" }" |" includedoc" ) { // Markdown code section
1027
+ if (Config_getBool (MARKDOWN_SUPPORT))
1028
+ {
1029
+ copyToOutput (yyscanner,yytext,yyleng);
1030
+ }
1031
+ else
1032
+ {
1033
+ REJECT;
1034
+ }
1035
+ }
1036
+ <CComment,ReadLine,IncludeFile>[ \t][ \t][ \t][ \t][\\@](" snippet{" {B}*" doc" {B}*" }" |" snippetdoc" ) { // Markdown code section
1037
+ if (Config_getBool (MARKDOWN_SUPPORT))
1038
+ {
1039
+ copyToOutput (yyscanner,yytext,yyleng);
1040
+ }
1041
+ else
1042
+ {
1043
+ REJECT;
1044
+ }
1045
+ }
1025
1046
<CComment,ReadLine,IncludeFile>[\\@](" include{" {B}*" doc" {B}*" }" |" includedoc" ) {
1026
1047
yyextra->includeCtx = YY_START;
1027
1048
yyextra->firstIncludeLine = true ;
Original file line number Diff line number Diff line change @@ -4337,7 +4337,7 @@ static inline void setOutput(yyscan_t yyscanner,OutputContext ctx)
4337
4337
{
4338
4338
yyextra->current ->brief = yyextra->current ->brief .left (yyextra->current ->brief .length ()-cnt);
4339
4339
// set warning line correct
4340
- yyextra->current ->brief += " \\ iline " + QCString ().setNum (cnt + static_cast <int >(std::stoul (match[1 ].str ()))) + " \\ ilinebr " ;
4340
+ yyextra->current ->brief += " \\ iline " + QCString ().setNum (cnt + static_cast <int >(std::stoul (match[1 ].str ()))) + " \\ ilinebr " ;
4341
4341
}
4342
4342
foundMatch = true ;
4343
4343
}
@@ -4427,14 +4427,14 @@ static inline void addOutput(yyscan_t yyscanner,char c)
4427
4427
static void addIline (yyscan_t yyscanner,int lineNr)
4428
4428
{
4429
4429
char cmd[20 ];
4430
- qsnprintf (cmd,20 ," \\ iline %d " ,lineNr);
4430
+ qsnprintf (cmd,20 ," \\ iline %d " ,lineNr);
4431
4431
addOutput (yyscanner, cmd);
4432
4432
}
4433
4433
4434
4434
static void addIlineBreak (yyscan_t yyscanner,int lineNr)
4435
4435
{
4436
4436
char cmd[30 ];
4437
- qsnprintf (cmd,30 ," \\ iline %d \\ ilinebr " ,lineNr);
4437
+ qsnprintf (cmd,30 ," \\ iline %d \\ ilinebr " ,lineNr);
4438
4438
addOutput (yyscanner, cmd);
4439
4439
}
4440
4440
Original file line number Diff line number Diff line change 15
15
import sys
16
16
import re
17
17
18
- message_re = re .compile ('message\s*\+=\s*("[^"]*")' )
18
+ message_re = re .compile (r 'message\s*\+=\s*("[^"]*")' )
19
19
20
20
def main ():
21
21
inputFile = open (sys .argv [1 ], 'r' )
You can’t perform that action at this time.
0 commit comments