Permalink
Browse files

Last comment of \code{.f90} missing

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 b9145da402cd49c4c4e888a31dc17612387b1321
Showing with 11 additions and 0 deletions.
  1. +11 −0 src/fortrancode.l
View
@@ -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();
}
%%
/*@ ----------------------------------------------------------------------------

0 comments on commit b9145da

Please sign in to comment.