diff options
author | albert-github <albert.tests@gmail.com> | 2018-10-08 14:50:01 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2018-10-08 14:50:01 (GMT) |
commit | e91f7a173e00db8ccb6d217728ccfc71981c4d7b (patch) | |
tree | 8b3db4354fad0c7dc1f0298be2954ffab8b36e0e /src/fortranscanner.l | |
parent | 36eefaf9a5faeb828c0d99bffb731747a59f17fe (diff) | |
download | Doxygen-e91f7a173e00db8ccb6d217728ccfc71981c4d7b.zip Doxygen-e91f7a173e00db8ccb6d217728ccfc71981c4d7b.tar.gz Doxygen-e91f7a173e00db8ccb6d217728ccfc71981c4d7b.tar.bz2 |
Numbers in comment disappear
In fixed formatted Fortran code the numbers in the first positions of the comment were filtered out.
This is a regression on pull request #655
example where the number '1' disappears:
!> \details
!> 1.) First point
subroutine tst
end subroutine
Diffstat (limited to 'src/fortranscanner.l')
-rw-r--r-- | src/fortranscanner.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fortranscanner.l b/src/fortranscanner.l index 884c86e..2bd6788 100644 --- a/src/fortranscanner.l +++ b/src/fortranscanner.l @@ -1638,7 +1638,7 @@ const char* prepassFixedForm(const char* contents, int *hasContLine) } // fallthrough default: - if ((column < 6) && ((c - '0') >= 0) && ((c - '0') <= 9)) { // remove numbers, i.e. labels from first 5 positions. + if (!commented && (column < 6) && ((c - '0') >= 0) && ((c - '0') <= 9)) { // remove numbers, i.e. labels from first 5 positions. newContents[j]=' '; } else if(column==6 && emptyLabel) { // continuation |