emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 71178fbdc6: Remove f90-mode regexp ambiguity (bug#17222)


From: Mattias Engdegård
Subject: master 71178fbdc6: Remove f90-mode regexp ambiguity (bug#17222)
Date: Tue, 24 May 2022 14:18:02 -0400 (EDT)

branch: master
commit 71178fbdc6a1124131dc3a760bde9d79d34ecec2
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>

    Remove f90-mode regexp ambiguity (bug#17222)
    
    * lisp/progmodes/f90.el (f90-font-lock-keywords-2):
    Modify regexp to be better-behaved.
---
 lisp/progmodes/f90.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/progmodes/f90.el b/lisp/progmodes/f90.el
index 342fcb27b3..dcd74f0369 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]