# HG changeset patch # User Glenn Morris # Date 1265357528 28800 # Node ID c2a34eaf2f6a3dfc4fb92f32806d74a972e5ef04 # Parent ce00524a181d447e324dc0384bc279edbb93ab17 * progmodes/f90.el (f90-font-lock-keywords-2): Fix `enum'. diff -r ce00524a181d -r c2a34eaf2f6a lisp/ChangeLog --- a/lisp/ChangeLog Thu Feb 04 23:49:36 2010 -0500 +++ b/lisp/ChangeLog Fri Feb 05 00:12:08 2010 -0800 @@ -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 -r ce00524a181d -r c2a34eaf2f6a lisp/progmodes/f90.el --- a/lisp/progmodes/f90.el Thu Feb 04 23:49:36 2010 -0500 +++ b/lisp/progmodes/f90.el Fri Feb 05 00:12:08 2010 -0800 @@ -558,9 +558,8 @@ \\(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+\\)\\)?"