aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-06-03 03:12:40 +0000
committerGlenn Morris2008-06-03 03:12:40 +0000
commit5fe2902f8e2d3d26a4301b332499e92cf521714b (patch)
tree1c91b6ce341355dce96f713a84f9659361928a31
parentd6388ebd03d4595404ddebbe8893846147e08c08 (diff)
downloademacs-5fe2902f8e2d3d26a4301b332499e92cf521714b.tar.gz
emacs-5fe2902f8e2d3d26a4301b332499e92cf521714b.zip
(f90-typedef-matcher, f90-looking-at-type-like): Check that
end-of-word follows "type".
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/f90.el4
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index adef3a31bfb..289c3801b27 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12008-06-03 Glenn Morris <rgm@gnu.org>
2
3 * progmodes/f90.el (f90-typedef-matcher, f90-looking-at-type-like):
4 Check that end-of-word follows "type".
5
12008-06-02 Daiki Ueno <ueno@unixuser.org> 62008-06-02 Daiki Ueno <ueno@unixuser.org>
2 7
3 * epa-file.el (epa-file-write-region): Write the entire buffer 8 * epa-file.el (epa-file-write-region): Write the entire buffer
diff --git a/lisp/progmodes/f90.el b/lisp/progmodes/f90.el
index 3cceaecc268..ce3237cdffb 100644
--- a/lisp/progmodes/f90.el
+++ b/lisp/progmodes/f90.el
@@ -440,7 +440,7 @@ The options are 'downcase-word, 'upcase-word, 'capitalize-word and nil."
440Set the match data so that subexpression 1,2 are the TYPE, and 440Set the match data so that subexpression 1,2 are the TYPE, and
441type-name parts, respectively." 441type-name parts, respectively."
442 (let (found l) 442 (let (found l)
443 (while (and (re-search-forward "\\<\\(\\(?:end[ \t]*\\)?type\\)[ \t]*" 443 (while (and (re-search-forward "\\<\\(\\(?:end[ \t]*\\)?type\\)\\>[ \t]*"
444 limit t) 444 limit t)
445 (not (setq found 445 (not (setq found
446 (progn 446 (progn
@@ -1213,7 +1213,7 @@ NAME is nil if the statement has no label."
1213NAME is non-nil only for type." 1213NAME is non-nil only for type."
1214 (cond 1214 (cond
1215 ((save-excursion 1215 ((save-excursion
1216 (and (looking-at "\\<type[ \t]*") 1216 (and (looking-at "\\<type\\>[ \t]*")
1217 (goto-char (match-end 0)) 1217 (goto-char (match-end 0))
1218 (not (looking-at "\\(is\\>\\|(\\)")) 1218 (not (looking-at "\\(is\\>\\|(\\)"))
1219 (or (looking-at "\\(\\sw+\\)") 1219 (or (looking-at "\\(\\sw+\\)")