From: Mattias EngdegÄrd Date: Tue, 24 May 2022 18:08:05 +0000 (+0200) Subject: Remove f90-mode regexp ambiguity (bug#17222) X-Git-Tag: emacs-29.0.90~1910^2~448 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=71178fbdc6a1124131dc3a760bde9d79d34ecec2;p=emacs.git Remove f90-mode regexp ambiguity (bug#17222) * lisp/progmodes/f90.el (f90-font-lock-keywords-2): Modify regexp to be better-behaved. --- diff --git a/lisp/progmodes/f90.el b/lisp/progmodes/f90.el index 342fcb27b3d..dcd74f0369c 100644 --- a/lisp/progmodes/f90.el +++ b/lisp/progmodes/f90.el @@ -612,7 +612,7 @@ and variable-name parts, respectively." '("^[ \t0-9]*\\(?:pure\\|elemental\\)?[ \t]*\ \\(real\\|integer\\|c\\(haracter\\|omplex\\)\\|\ enumerator\\|generic\\|procedure\\|logical\\|double[ \t]*precision\\)\ -\\(.*::\\|[ \t]*(.*)\\)?\\(\\(?:[^&!\n]*\\(?:&\n\\)?\\)+\\)" +\\(.*::\\|[ \t]*(.*)\\)?\\([^&!\n]*\\(?:&\n[^&!\n]*\\)*\\)" (1 font-lock-type-face t) (4 font-lock-variable-name-face append)) ;; Derived type/class variables. ;; TODO ? If we just highlighted the "type" part, rather than