aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris <[email protected]>2002-06-19 22:41:53 +0000
committerGlenn Morris <[email protected]>2002-06-19 22:41:53 +0000
commite7272eceaa64c62ab8b51fcde116b9be9c71bf83 (patch)
treedfd50ec4a994893fc07da39e19fce9d0de24ff35 /lisp
parent8355856ab09cbda9cbfb10f911cc6efeb93374d9 (diff)
(f90-type-def-re): Fix value.
(f90-looking-at-type-like): Adapt for new value of `f90-type-def-re'.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/f90.el6
2 files changed, 8 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b68ef14d6a..2494ce2f57 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2002-06-19 Glenn Morris <[email protected]>
+
+ * 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 <[email protected]>
* filesets.el (filesets-update-pre010505): Fix typo.
diff --git a/lisp/progmodes/f90.el b/lisp/progmodes/f90.el
index cdb7db4688..5b34e8506b 100644
--- a/lisp/progmodes/f90.el
+++ b/lisp/progmodes/f90.el
@@ -632,8 +632,8 @@ do\\([ \t]*while\\)?\\|select[ \t]*case\\|where\\|forall\\)\\)\\>"
"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)
@@ -977,7 +977,7 @@ NAME is nil if the statement has no label."
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))))