← Back to team overview

desktop-packages team mailing list archive

[Bug 1489910] [NEW] Fortran syntax highlighting incorrect for character type.

 

Public bug reported:

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.

** Affects: gtksourceview3 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: blue character fortran gtksourceview highlighting

** Attachment added: "Line 48 commented out. Line 49 has the correction."
   https://bugs.launchpad.net/bugs/1489910/+attachment/4453861/+files/fortran.lang

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gtksourceview3 in Ubuntu.
https://bugs.launchpad.net/bugs/1489910

Title:
  Fortran syntax highlighting incorrect for character type.

Status in gtksourceview3 package in Ubuntu:
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gtksourceview3/+bug/1489910/+subscriptions