Skip to content

Commit

Permalink
Last comment of \code{.f90} missing
Browse files Browse the repository at this point in the history
In case e.g. an number of Fortran variables are documented as an example in a \code block and the last line looks like:
INTEGER :: var !< documentation
The "!< documentation" is missing as the last block was not rendered.
Note: STRIP_CODE_COMMENTS has to be NO as otherwise the code comment will anyway, correctly,  be absent.
  • Loading branch information
albert-github committed Oct 11, 2014
1 parent 4df5291 commit b9145da
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/fortrancode.l
Expand Up @@ -1136,6 +1136,17 @@ PREFIX (RECURSIVE{BS_}|IMPURE{BS_}|PURE{BS_}|ELEMENTAL{BS_}){0,3}(RECURSIVE|I
<*>{LOG_OPER} { // Fortran logical comparison keywords
g_code->codify(yytext);
}
<*><<EOF>> {
if (YY_START == DocBlock) {
if (!Config_getBool("STRIP_CODE_COMMENTS"))
{
startFontClass("comment");
codifyLines(docBlock);
endFontClass();
}
}
yyterminate();
}
%%

/*@ ----------------------------------------------------------------------------
Expand Down

0 comments on commit b9145da

Please sign in to comment.