Some keywords not recognised for highlighting
Submitted by Monday, 10 May, 2010 - 14:27
on
I'm using Jedit version 4.3.1 on Windows XP, and editing some Fortran90. The syntax highlighting mostly works very well, but a few Fortran keywords did not get recognised (so they did not benefit from highlighting, and the Macro to convert all keywords to upper-case didn't work on them either).
For example data types INTEGER and REAL got recognised, but COMPLEX and DOUBLE PRECISION did not. And while nearly all other statement keywords in the code were ok, the CONTAINS statement was not.
I checked the fortran.xml file and all of these are present, so it's not obvious to me why a few keywords do not get recognised in my code.
I'm not sure if this is a bug, or just a feature, or if there's something in the way I have used these keywords that has confused the parser.
Here's a trivial example:
PROGRAM quadratic
IMPLICIT NONE
REAL :: a, b, c, term, root1, root2
COMPLEX :: cterm, croot1, croot2
PRINT *, 'Enter a, b, c:'
READ *, a, b, c
All keywords except COMPLEX are highlighted here.
For example data types INTEGER and REAL got recognised, but COMPLEX and DOUBLE PRECISION did not. And while nearly all other statement keywords in the code were ok, the CONTAINS statement was not.
I checked the fortran.xml file and all of these are present, so it's not obvious to me why a few keywords do not get recognised in my code.
I'm not sure if this is a bug, or just a feature, or if there's something in the way I have used these keywords that has confused the parser.
Here's a trivial example:
PROGRAM quadratic
IMPLICIT NONE
REAL :: a, b, c, term, root1, root2
COMPLEX :: cterm, croot1, croot2
PRINT *, 'Enter a, b, c:'
READ *, a, b, c
All keywords except COMPLEX are highlighted here.