Permalink
Browse files

Bug 759177 - Markdown fenced code blocks not parsed properly in comment

  • Loading branch information...
Dimitri van Heesch
Dimitri van Heesch committed Dec 19, 2015
1 parent b0d3174 commit ae6311ea0855d576a7c4b589dd5f4b994a47fd6c
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/scanner.l
View
@@ -6279,14 +6279,14 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
BEGIN(DocCopyBlock);
}
<DocBlock>^({B}*"*"+)?{B}{0,3}"~~~"[~]* {
docBlock+=yytext;
docBlock+=substitute(yytext,"*"," ");
docBlockName="~~~";
g_fencedSize=yyleng;
g_nestedComment=FALSE;
BEGIN(DocCopyBlock);
}
<DocBlock>^({B}*"*"+)?{B}{0,3}"```"[`]* {
docBlock+=yytext;
docBlock+=substitute(yytext,"*"," ");
docBlockName="```";
g_fencedSize=yyleng;
g_nestedComment=FALSE;
@@ -6404,14 +6404,14 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
}
}
<DocCopyBlock>^({B}*"*"+)?{B}{0,3}"~~~"[~]* {
docBlock+=yytext;
docBlock+=substitute(yytext,"*"," ");
if (g_fencedSize==yyleng)
{
BEGIN(DocBlock);
}
}
<DocCopyBlock>^({B}*"*"+)?{B}{0,3}"```"[`]* {
docBlock+=yytext;
docBlock+=substitute(yytext,"*"," ");
if (g_fencedSize==yyleng)
{
BEGIN(DocBlock);

0 comments on commit ae6311e

Please sign in to comment.