From 3554bad481cb8890df90dd186a958d5e6de46dfd Mon Sep 17 00:00:00 2001 From: albert-github Date: Thu, 3 Jan 2019 14:53:10 +0100 Subject: issue #6732 align environment for formula (\f{align}) no longer working The `\f{..}` looks like the, new, option handling, but the handling if `\f{` is done at another place and would now be included here due to the first part `{B}*{CMD}[a-z_A-Z]+"{"[a-zA-Z_,:0-9\. ]*"}"{B}*` of the rules. --- src/commentscan.l | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/commentscan.l b/src/commentscan.l index 90e7ac3..235cd7c 100644 --- a/src/commentscan.l +++ b/src/commentscan.l @@ -1121,6 +1121,8 @@ RCSTAG "$"{ID}":"[^\n$]+"$" // the {B}* in the front was added for bug620924 QCString fullMatch = QCString(yytext); int idx = fullMatch.find('{'); + /* handle `\f{` and `@f{` as special cases */ + if ((idx > 1) && (yytext[idx-1] == 'f') && (yytext[idx-2] == '\\' || yytext[idx-2] =='@')) REJECT; int idxEnd = fullMatch.find("}",idx+1); QCString cmdName; QCStringList optList; -- cgit v0.12