Fortran90 OpenMP directives -- syntax highlighting?

Carlie J. Coats coats at baronams.com
Tue Sep 22 18:15:45 CEST 2009


Fortran OpenMP directives look something like the following example:

!$OMP   PARALLEL DO DEFAULT( NONE ),                              &
!$OMP&               SHARED( C1, C2, R1, R2, DH, KH, SFCHEADRT ), &
!$OMP&              PRIVATE( I, J, K, C, R ),                     &
!$OMP&             SCHEDULE( DYNAMIC )

where a directive is started by a "!$OMP", and continued by a
"&\n!$OMP&".  It would be nice to have them highlighted in some
fashion.  I've tried to treat them as "Preprocessor" style by
adding a "Directive:"^!\$OMP":"$"::Preprocessor::\n\" line
to the Fortran90 "nedit.highlightPatterns" in my RC file (not
a full-strength description of the directives, but for a first
cut, it should help), and that didn't work for me.  I'm probably
missing something obvious;-(

How *should* I do it?

-- Carlie J. Coats, Jr.
    Baron Advanced Meteorological Systems, LLC.



More information about the Discuss mailing list