diff options
| author | Glenn Morris | 2008-06-03 03:12:40 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-06-03 03:12:40 +0000 |
| commit | 5fe2902f8e2d3d26a4301b332499e92cf521714b (patch) | |
| tree | 1c91b6ce341355dce96f713a84f9659361928a31 | |
| parent | d6388ebd03d4595404ddebbe8893846147e08c08 (diff) | |
| download | emacs-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/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/f90.el | 4 |
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 @@ | |||
| 1 | 2008-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 | |||
| 1 | 2008-06-02 Daiki Ueno <ueno@unixuser.org> | 6 | 2008-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." | |||
| 440 | Set the match data so that subexpression 1,2 are the TYPE, and | 440 | Set the match data so that subexpression 1,2 are the TYPE, and |
| 441 | type-name parts, respectively." | 441 | type-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." | |||
| 1213 | NAME is non-nil only for type." | 1213 | NAME 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+\\)") |