Re: Fortran (95/03) syntax highlighting
  Home FAQ Contact Sign in
gnu.emacs.help only
 
Advanced search
POPULAR GROUPS

more...

gnu.emacs.help Profile…
 Up
Re: Fortran (95/03) syntax highlighting         


Author: Nikolaj Schumacher
Date: Aug 20, 2008 02:50

"Izaak Beekman" princeton.edu> wrote:
> 2) No support for Fortran 03 syntax

It's currently not supported by Emacs. You could look for an
external package, but I wouldn't get my hopes up.
> 1) Incorrect syntax highlighting in variable declarations with line
> continuations.

If that's legal F95 syntax, I'd report it as a bug. (M-x report-emacs-bug)
> 3) .f95 and .f03 file-name-suffixes are not recognized.

(add-to-list 'auto-mode-alist
'("\\.[fF]\\(03\\|95\\)\\'" . f90-mode))

However, .f95 works out of the box here. Are you using a recent Emacs?
> I have included my .emacs file as an attachment. This has been very
> sloppily cobbled together from other peoples .emacs files and various small
> enhancements I have made myself. Comments and suggestions welcome.

If you request comments, please paste in inline, so it can be easily
quoted. Although I'd prefer to stay on-topic.

regards,
Nikolaj Schumacher
1 Comment
Re: Fortran (95/03) syntax highlighting         


Date: Aug 20, 2008 09:46

Nikolaj Schumacher wrote:
> "Izaak Beekman" princeton.edu> wrote:
>
>> 2) No support for Fortran 03 syntax
>
> It's currently not supported by Emacs. You could look for an
> external package, but I wouldn't get my hopes up.

The development version of Emacs (to be released as 23.1 hopefully on
the order of six months) has supported F03 for the best part of a year.
I encourage people to try it out and report any problems or missing
features.
>> 1) Incorrect syntax highlighting in variable declarations with line
>> continuations.
>
> If that's legal F95 syntax, I'd report it as a bug. (M-x report-emacs-bug)

Indeed.
>> 3) .f95 and .f03 file-name-suffixes are not recognized.
Show full article (1.19Kb)
no comments