all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* f90.el doesn't recognize elemental attribute for hiliting
@ 2002-03-30 20:38 Richard E. Hawkins
  2002-03-30 20:47 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Richard E. Hawkins @ 2002-03-30 20:38 UTC (permalink / raw)


This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.1.1 (i386--freebsd, X toolkit, Xaw3d scroll bars)
 of 2002-03-18 on fac13.ds.psu.edu
configured using `configure  --prefix=/usr/local i386--freebsd'
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

recursive function mutation(thegene)

will highlight both "recursive" and "function" properly.

elemental function mutation(thegene)

fails to highlight "elemental"



Recent input:
<right> <right> <left> <left> <left> <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
M-d C-d <up> <tab> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> C-k C-x C-s 
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n 
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n 
C-p C-p C-p C-p C-p C-f C-f C-k C-n C-n <M-backspace> 
m u t a t i o n <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <menu-bar> 
<help-menu> <report-emacs-bug>

Recent messages:
Undo! [2 times]
Making completion list...
Loading view...done
Making completion list... [6 times]
call-interactively: Quit
Undo! [4 times]
Wrote /home/hawk/Research/Price/pm7/pm7.f90
Auto-saving...done
Wrote /home/hawk/Research/Price/pm7/pm7.f90
Loading emacsbug...done

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: f90.el doesn't recognize elemental attribute for hiliting
  2002-03-30 20:38 f90.el doesn't recognize elemental attribute for hiliting Richard E. Hawkins
@ 2002-03-30 20:47 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2002-03-30 20:47 UTC (permalink / raw)



Richard E Hawkins <hawk@fac13.ds.psu.edu> wrote:

> recursive function mutation(thegene)
>
> will highlight both "recursive" and "function" properly.
>
> elemental function mutation(thegene)
>
> fails to highlight "elemental"

The "elemental" specification is an F95 feature, so one could make a
reasonable case that there is no reason why F90 mode should support this.
"recursive", on the other hand, is an F90 specification.

I use the following in my .emacs to get F95 syntax highlighted:


(defface f95-keyword-face
  '((t (:foreground "plum1")))
  "F95 keywords face.")

(defface f95-function-face
  '((t (:foreground "azure1")))
  "F95 function name face.")


(defvar f95-font-lock-keywords
  (list
   '("\\<\\(pure\\|elemental\\)\\>" . 'f95-keyword-face)

   ;; Override existing highlighting of 'elsewhere', etc, but not in comments.
   '("\\<\\(null\\|cpu_time\\|elsewhere\\)\\>[ \t]*("
	 (1 (if (f90-in-comment) 'font-lock-comment-face 'f95-function-face) t))

   ;; Plain forall should not really be highlighted without trailing '(',
   ;; but is in existing f90-mode.
   '("\\(\\<end\\> *\\)?\\<forall\\>" .
	 (0 (if (f90-in-comment) 'font-lock-comment-face 'f95-function-face) t))

   ;; Highlight the extra 'dim' keyword for these functions.
   '("\\<\\(\\(max\\|min\\)loc\\|ceiling\\|floor\\)\\>[ \t]*("
			 ("\\<dim\\>" nil nil (0 'f95-keyword-face)))
   )
  "Highlights extra F95 keywords.")


(font-lock-add-keywords 'f90-mode f95-font-lock-keywords)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-03-30 20:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-30 20:38 f90.el doesn't recognize elemental attribute for hiliting Richard E. Hawkins
2002-03-30 20:47 ` Glenn Morris

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.