diff options
author | albert-github <albert.tests@gmail.com> | 2014-10-11 12:18:33 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2014-10-11 12:18:33 (GMT) |
commit | b9145da402cd49c4c4e888a31dc17612387b1321 (patch) | |
tree | 80685c4c2385a275a54059adb908ef47145b7936 /src/fortrancode.l | |
parent | 4df52916170bb81179697d0fa78c7d81fd95415f (diff) | |
download | Doxygen-b9145da402cd49c4c4e888a31dc17612387b1321.zip Doxygen-b9145da402cd49c4c4e888a31dc17612387b1321.tar.gz Doxygen-b9145da402cd49c4c4e888a31dc17612387b1321.tar.bz2 |
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.
Diffstat (limited to 'src/fortrancode.l')
-rw-r--r-- | src/fortrancode.l | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/fortrancode.l b/src/fortrancode.l index 03baeed..6530a8a 100644 --- a/src/fortrancode.l +++ b/src/fortrancode.l @@ -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(); + } %% /*@ ---------------------------------------------------------------------------- |