summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-01-03 13:53:10 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-01-03 13:53:10 (GMT)
commit3554bad481cb8890df90dd186a958d5e6de46dfd (patch)
tree3c92d99b0171e4c744ef64a38c687ca9bf81826c /src
parentd2944ce350bd0fb687227eb4e98b942beab9591d (diff)
downloadDoxygen-3554bad481cb8890df90dd186a958d5e6de46dfd.zip
Doxygen-3554bad481cb8890df90dd186a958d5e6de46dfd.tar.gz
Doxygen-3554bad481cb8890df90dd186a958d5e6de46dfd.tar.bz2
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 `<Comment>{B}*{CMD}[a-z_A-Z]+"{"[a-zA-Z_,:0-9\. ]*"}"{B}*` of the rules.
Diffstat (limited to 'src')
-rw-r--r--src/commentscan.l2
1 files changed, 2 insertions, 0 deletions
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;