diff options
Diffstat (limited to 'src/commentscan.l')
-rw-r--r-- | src/commentscan.l | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/commentscan.l b/src/commentscan.l index 1500f49..8c8aa2e 100644 --- a/src/commentscan.l +++ b/src/commentscan.l @@ -207,7 +207,7 @@ static DocCmdMap docCmdMap[] = { "author", 0, TRUE }, { "authors", 0, TRUE }, { "copydoc", 0, TRUE }, - { "copybrief", 0, TRUE }, + { "copybrief", 0, FALSE }, { "copydetails", 0, TRUE }, { "date", 0, TRUE }, { "dotfile", 0, TRUE }, @@ -974,6 +974,11 @@ RCSTAG "$"{ID}":"[^\n$]+"$" <Comment>{CMD}"f{"[^}\n]+"}"("{"?) { // start of a formula with custom environment formulaText="\\begin"; formulaEnv=&yytext[2]; + if (formulaEnv.at(formulaEnv.length()-1)=='{') + { + // remove trailing open brace + formulaEnv=formulaEnv.left(formulaEnv.length()-1); + } formulaText+=formulaEnv; formulaNewLines=0; BEGIN(ReadFormulaLong); |