]> git.eshelyaron.com Git - emacs.git/commitdiff
(f90-typedef-matcher, f90-looking-at-type-like): Check that
authorGlenn Morris <rgm@gnu.org>
Tue, 3 Jun 2008 03:12:40 +0000 (03:12 +0000)
committerGlenn Morris <rgm@gnu.org>
Tue, 3 Jun 2008 03:12:40 +0000 (03:12 +0000)
end-of-word follows "type".

lisp/ChangeLog
lisp/progmodes/f90.el

index adef3a31bfbb8dd43e9796d67929001d8fea9f9b..289c3801b27d2dcba7d98232a1148bef20e4c8c5 100644 (file)
@@ -1,3 +1,8 @@
+2008-06-03  Glenn Morris  <rgm@gnu.org>
+
+       * progmodes/f90.el (f90-typedef-matcher, f90-looking-at-type-like):
+       Check that end-of-word follows "type".
+
 2008-06-02  Daiki Ueno  <ueno@unixuser.org>
 
        * epa-file.el (epa-file-write-region): Write the entire buffer
index 3cceaecc2683638c924a46ccd4e29e571a876c53..ce3237cdffbea9ad6da2d8b7ad4bbe9d1cb87f36 100644 (file)
@@ -440,7 +440,7 @@ The options are 'downcase-word, 'upcase-word, 'capitalize-word and nil."
 Set the match data so that subexpression 1,2 are the TYPE, and
 type-name parts, respectively."
   (let (found l)
-    (while (and (re-search-forward "\\<\\(\\(?:end[ \t]*\\)?type\\)[ \t]*"
+    (while (and (re-search-forward "\\<\\(\\(?:end[ \t]*\\)?type\\)\\>[ \t]*"
                                    limit t)
                 (not (setq found
                            (progn
@@ -1213,7 +1213,7 @@ NAME is nil if the statement has no label."
 NAME is non-nil only for type."
   (cond
    ((save-excursion
-      (and (looking-at "\\<type[ \t]*")
+      (and (looking-at "\\<type\\>[ \t]*")
            (goto-char (match-end 0))
            (not (looking-at "\\(is\\>\\|(\\)"))
            (or (looking-at "\\(\\sw+\\)")