From: Glenn Morris <rgm+news@stanford.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: need help customizing font-lock colors in syntax highlighting (fortran)
Date: Tue, 01 Apr 2008 00:29:14 -0700 [thread overview]
Message-ID: <4sprtaxcc5.fsf@xoc2.stanford.edu> (raw)
In-Reply-To: 99f4b8df-7ff4-4098-81b0-2d54b732cb74@t54g2000hsg.googlegroups.com
bcbarnes@gmail.com wrote:
> In the old fortran mode filter, intrinsics such as mod, exp, and
> others would be highlighting in a different color (say, pink) than the
> control flow commands such as if/endif, do/enddo (which would be in
> purple). In the F90 mode, these commands are all highlighted in the
> same color. I find this to be undesirable, but I'm not sure how to
> change it.
I don't really know why it is like it is, but it is. Anyway, add to
~/.emacs:
(eval-after-load "f90"
'(progn
(setq f90-font-lock-keywords-3
(append f90-font-lock-keywords-2
(list
f90-keywords-level-3-re
f90-operators-re
(list f90-procedures-re '(1 font-lock-builtin-face keep))
"\\<real\\>"))
f90-font-lock-keywords-4 (append f90-font-lock-keywords-3
(list f90-hpf-keywords-re)))))
next prev parent reply other threads:[~2008-04-01 7:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-31 19:41 need help customizing font-lock colors in syntax highlighting (fortran) bcbarnes
2008-04-01 7:29 ` Glenn Morris [this message]
2008-04-01 15:54 ` bcbarnes
2008-04-01 8:59 ` Peter Dyballa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4sprtaxcc5.fsf@xoc2.stanford.edu \
--to=rgm+news@stanford.edu \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).