Skip to content

Commit 7171bbb

Browse files
committed
Doxygen crashes on Fortran
When having a Fortran file like: ``` !> module docu MODULE test_mod INTERFACE !> @brief iets SUBROUTINE subr_i(this) INTEGER this END SUBROUTINE subr_i END INTERFACE !< @brief type brief TYPE, PUBLIC :: test_type !> docu integer i END TYPE test_type END MODULE test_mod ``` this is due to the fact that a incorrect start of comment `!<` is used for the `TYPE` and that initiated because the last `SUBROUTINE` argument does not have any documentation. The actual cause is that at the end of a subroutine the `vtype` is not properly reset.
1 parent 6922d5d commit 7171bbb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/fortranscanner.l

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,7 @@ private {
774774
yyterminate();
775775
}
776776
yyextra->subrCurrent.pop_back();
777+
yyextra->vtype = V_IGNORE;
777778
yy_pop_state(yyscanner) ;
778779
}
779780
<BlockData>{

0 commit comments

Comments
 (0)