summaryrefslogtreecommitdiff
path: root/lisp/progmodes/f90.el
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2022-05-24 20:08:05 +0200
committerMattias EngdegÄrd <mattiase@acm.org>2022-05-24 20:09:58 +0200
commit71178fbdc6a1124131dc3a760bde9d79d34ecec2 (patch)
tree46cbdbdb7812e35da758299605e1d260714fe5d3 /lisp/progmodes/f90.el
parent5f6e64a316adc6cd6ea140453718160643c6cd93 (diff)
downloademacs-71178fbdc6a1124131dc3a760bde9d79d34ecec2.tar.gz
emacs-71178fbdc6a1124131dc3a760bde9d79d34ecec2.tar.bz2
emacs-71178fbdc6a1124131dc3a760bde9d79d34ecec2.zip
Remove f90-mode regexp ambiguity (bug#17222)
* lisp/progmodes/f90.el (f90-font-lock-keywords-2): Modify regexp to be better-behaved.
Diffstat (limited to 'lisp/progmodes/f90.el')
-rw-r--r--lisp/progmodes/f90.el2
1 files changed, 1 insertions, 1 deletions
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