Fortran syntax highlighting incorrect for character type.

Bug #1489910 reported by MacDaddy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gtksourceview3 (Ubuntu)
New
Undecided
Unassigned

Bug Description

The character type for the Fortran language spec. is incorrectly colored blue. The problem is line 48 of the language spec. fortran.lang ,where 'H' and 'h' are not included as an exception to the comment rule. The result is that the language spec. thinks "CHARACTER" is a comment, since it starts with "C".

There are other functions and keywords that have this problem, but I don't run into them as frequently as I do with "CHARACTER."

I have fixed this problem by changing fortran.lang:48 to read:

"<start>!|(^[Cc](\b|[^OoAaYyHhLlCcDdEeMmPpQqSs_]))</start>"

and have attached a new language spec. in this bug report. Please feel free to commit these changes to upstream as seen fit.

Revision history for this message
MacDaddy (gordon-andrew-macdonald) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.