+2002-06-19 Glenn Morris <gmorris@ast.cam.ac.uk>
+
+ * progmodes/f90.el (f90-type-def-re): Fix value.
+ (f90-looking-at-type-like): Adapt for new `f90-type-def-re' value.
+
2002-06-18 Juanma Barranquero <lektu@terra.es>
* filesets.el (filesets-update-pre010505): Fix typo.
"Regexp matching the end of a TYPE, INTERFACE, BLOCK DATA section.")
(defconst f90-type-def-re
- "\\<\\(type\\)\\([^(\n]*\\)\\(::\\)?[ \t]*\\b\\(\\sw+\\)"
- "Regexp matching the declaration of a variable of derived type.")
+ "\\<\\(type\\)[ \t]+\\(\\sw+\\)\\>"
+ "Regexp matching the definition of a derived type.")
(defconst f90-no-break-re
(regexp-opt '("**" "//" "=>") 'paren)
NAME is non-nil only for type."
(cond
((looking-at f90-type-def-re)
- (list (match-string 1) (match-string 4)))
+ (list (match-string 1) (match-string 2)))
((looking-at "\\(interface\\|block[\t]*data\\)\\>")
(list (match-string 1) nil))))