https://bugs.kde.org/show_bug.cgi?id=372950
Bug ID: 372950 Summary: Fortran syntax highlighting: distinguish free format and fixed format Product: kate Version: 16.04 Platform: Ubuntu Packages OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: syntax Assignee: kwrite-bugs-n...@kde.org Reporter: ja...@gcc.gnu.org Target Milestone: --- Kate currently seems to have only one syntax-highlighting mode for Fortran. However, in the Fortran language there are two different source formats: * fixed format (from the old Fortran77 standard, extension .f) * free format (introduced with Fortran90, extension .f90) The keywords etc are the same, but one thing that differs is commenting: In fixed format every line with a 'c' in the first column is a comment, while in free format comments start with an '!' (in any column). Both of these mechanisms seem to be supported in Kate 16.04.3 on Ubuntu 16.10 (with Fortran highlighting file v2). The problem is that lines starting with 'c' are also displayed like a comment in f90 files (where only '!' indicates a comment). Simple example ('test.f90'): ! this is a test program that does absolutely nothing program test contains subroutine s end subroutine end program The first line is greyed out, which is correct, but also the third line ('contains') is greyed out, which is wrong. It is displayed normally if a space is inserted before 'contains.' -- You are receiving this mail because: You are watching all bug changes.