GNOME Bugzilla – Bug 659173
Preprocessing outside subroutines definitions breaks fortran comments
Last modified: 2013-04-14 12:32:29 UTC
I'm coding in fortran. If I have a preprocessing instruction outside the program's definition, it breaks comment lines begining with a "C" character and containing an ' character (apostrophe ), and also following lines. If the preprocessing instruction is inside the program's definition, or if the comment line begins with "!" character, it works. It is a problem because a lot of files in my project are written such manner.
Created attachment 196661 [details] a file showing the problem
Created attachment 196662 [details] a file where the problem does not occure
Created attachment 196663 [details] a file where the problem does not occure
it happens whether I activate the preprocessing option or not
Created attachment 196692 [details] The DoxyFile
Basic problem lies here in the fact that the fie is not recognized as a fixed format Fortran file. (We see this in the output of the doxygen command where the line "Prepassing fixed form of .../toto.f" is missing and in the coloring of the source code where the lines starting with a 'c' or 'C' are not seen as comment lines, a line staring with '!' is seen as comment). When changing the comments from 'C' / 'c' comments into '!' comments the file is processed properly as a free formated file. Conclusion this is a duplicate of bug_625601 *** This bug has been marked as a duplicate of bug 625601 ***