diff options
Diffstat (limited to 'src/scanner.l')
-rw-r--r-- | src/scanner.l | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/scanner.l b/src/scanner.l index c309289..b11d777 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -6264,14 +6264,14 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) g_nestedComment=FALSE; BEGIN(DocCopyBlock); } -<DocBlock>"~~~"[~]* { +<DocBlock>^({B}*"*"+)?{B}{0,3}"~~~"[~]* { docBlock+=yytext; docBlockName="~~~"; g_fencedSize=yyleng; g_nestedComment=FALSE; BEGIN(DocCopyBlock); } -<DocBlock>"```"[`]* { +<DocBlock>^({B}*"*"+)?{B}{0,3}"```"[`]* { docBlock+=yytext; docBlockName="```"; g_fencedSize=yyleng; @@ -6389,14 +6389,14 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) REJECT; } } -<DocCopyBlock>"~~~"[~]* { +<DocCopyBlock>^({B}*"*"+)?{B}{0,3}"~~~"[~]* { docBlock+=yytext; if (g_fencedSize==yyleng) { BEGIN(DocBlock); } } -<DocCopyBlock>"```"[`]* { +<DocCopyBlock>^({B}*"*"+)?{B}{0,3}"```"[`]* { docBlock+=yytext; if (g_fencedSize==yyleng) { |