Fortran 77 Comment Parsing Issue with Initial 'C' Character
Foadsf opened this issue · 0 comments
Describe the bug
Hello i-CodeCNES team,
I've encountered an issue with the Fortran 77 analysis in i-CodeCNES where lines starting with the C
character are not recognized as comments. This happens even when explicitly specifying the language using the command:
icode.bat <FILE> --checked-languages "Fortran 77"
Expected behavior
In Fortran 77, any line starting with a C
or c
in the first column should be treated as a comment. (reference)
Current Behavior:
Lines starting with C
are not considered comments by the analyzer, leading to potential misinterpretation of the code structure.
Temporary Workaround:
A temporary workaround is to replace all starting C
characters with !
to ensure they are recognized as comments by i-CodeCNES.
Suggested Fix:
It would be beneficial to update i-CodeCNES to correctly recognize lines starting with C
as comments when analyzing Fortran 77 code.