summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-10-08 14:50:01 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-10-08 14:50:01 (GMT)
commite91f7a173e00db8ccb6d217728ccfc71981c4d7b (patch)
tree8b3db4354fad0c7dc1f0298be2954ffab8b36e0e
parent36eefaf9a5faeb828c0d99bffb731747a59f17fe (diff)
downloadDoxygen-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
-rw-r--r--src/fortranscanner.l2
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