From f43d8ecc20470f4021ac2e2900f6f3ef15300ff2 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Fri, 5 Feb 2010 00:12:08 -0800 Subject: [PATCH] * progmodes/f90.el (f90-font-lock-keywords-2): Fix `enum'. --- lisp/ChangeLog | 4 ++++ lisp/progmodes/f90.el | 5 ++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b6627e69ccc..77196ad4842 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2010-02-05 Glenn Morris + + * progmodes/f90.el (f90-font-lock-keywords-2): Fix `enum'. + 2010-02-05 Chong Yidong * startup.el (command-line-1): Convert options beginning with a diff --git a/lisp/progmodes/f90.el b/lisp/progmodes/f90.el index 8f95da70464..eda9f4e0155 100644 --- a/lisp/progmodes/f90.el +++ b/lisp/progmodes/f90.el @@ -558,9 +558,8 @@ logical\\|double[ \t]*precision\\|\ \\(function\\)\\>[ \t]*\\(\\sw+\\)[ \t]*\\(([^&!\n]*)\\)" (1 font-lock-type-face t) (4 font-lock-keyword-face t) (5 font-lock-function-name-face t) (6 'default t)) - ;; enum (F2003; cf type in -1). - '("\\<\\(enum\\)\\>\\([^()\n]*::\\)?[ \t]*\\(\\sw+\\)" - (1 font-lock-keyword-face) (3 font-lock-function-name-face)) + ;; enum (F2003; must be followed by ", bind(C)"). + '("\\<\\(enum\\)[ \t]*," (1 font-lock-keyword-face)) ;; end do, enum (F2003), if, select, where, and forall constructs. '("\\<\\(end[ \t]*\\(do\\|if\\|enum\\|select\\|forall\\|where\\)\\)\\>\ \\([ \t]+\\(\\sw+\\)\\)?" -- 2.39.2