Skip to content

Commit

Permalink
Merge pull request #482 from albert-github/feature/bug_767171
Browse files Browse the repository at this point in the history
Bug 767171 - ALIASES stop working after verbatim with formula and /** */
  • Loading branch information
Dimitri van Heesch committed Jun 20, 2016
2 parents 10256be + 36731bc commit 8bbf7e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/commentcnv.l
Expand Up @@ -465,7 +465,7 @@ void replaceComment(int offset);
}
BEGIN(VerbatimCode);
}
<CComment,ReadLine>[\\@]("f$"|"f["|"f{"[a-z]*) {
<CComment,ReadLine>[\\@]("f$"|"f["|"f{") {
copyToOutput(yytext,(int)yyleng);
g_blockName=&yytext[1];
if (g_blockName.at(1)=='[')
Expand All @@ -488,9 +488,9 @@ void replaceComment(int offset);
<Scan>. { /* any ather character */
copyToOutput(yytext,(int)yyleng);
}
<Verbatim>[\\@]("endverbatim"|"endlatexonly"|"endhtmlonly"|"endxmlonly"|"docbookonly"|"endrtfonly"|"endmanonly"|"f$"|"f]"|"f}") { /* end of verbatim block */
<Verbatim>[\\@]("endverbatim"|"endlatexonly"|"endhtmlonly"|"endxmlonly"|"enddocbookonly"|"endrtfonly"|"endmanonly"|"f$"|"f]"|"f}") { /* end of verbatim block */
copyToOutput(yytext,(int)yyleng);
if (yytext[1]=='f') // end of formula
if (&yytext[1]==g_blockName) // end of formula
{
BEGIN(g_lastCommentContext);
}
Expand Down

0 comments on commit 8bbf7e2

Please sign in to comment.