diff options
Diffstat (limited to 'lisp/progmodes')
-rw-r--r-- | lisp/progmodes/f90.el | 12 | ||||
-rw-r--r-- | lisp/progmodes/fortran.el | 1 |
2 files changed, 2 insertions, 11 deletions
diff --git a/lisp/progmodes/f90.el b/lisp/progmodes/f90.el index 28f5d329fd5..849b9c0c3f7 100644 --- a/lisp/progmodes/f90.el +++ b/lisp/progmodes/f90.el @@ -629,6 +629,7 @@ Can be overridden by the value of `font-lock-maximum-decoration'.") (modify-syntax-entry ?= "." table) (modify-syntax-entry ?* "." table) (modify-syntax-entry ?/ "." table) + (modify-syntax-entry ?% "." table) ; bug#8820 ;; I think that the f95 standard leaves the behavior of \ ;; unspecified, but that f2k will require it to be non-special. ;; Use `f90-backslash-not-special' to change. @@ -2199,17 +2200,6 @@ CHANGE-WORD should be one of 'upcase-word, 'downcase-word, 'capitalize-word." (save-excursion (nth 1 (f90-beginning-of-subprogram)))) -(defun f90-find-tag-default () - "Function to use for `find-tag-default-function' property in F90 mode." - (let ((tag (find-tag-default))) - (or (and tag - ;; See bug#7919. TODO I imagine there are other cases...? - (string-match "%\\([^%]+\\)\\'" tag) - (match-string-no-properties 1 tag)) - tag))) - -(put 'f90-mode 'find-tag-default-function 'f90-find-tag-default) - (defun f90-backslash-not-special (&optional all) "Make the backslash character (\\) be non-special in the current buffer. With optional argument ALL, change the default for all present diff --git a/lisp/progmodes/fortran.el b/lisp/progmodes/fortran.el index f03d2013467..d30b9673d09 100644 --- a/lisp/progmodes/fortran.el +++ b/lisp/progmodes/fortran.el @@ -600,6 +600,7 @@ Used in the Fortran entry in `hs-special-modes-alist'.") (modify-syntax-entry ?= "." table) (modify-syntax-entry ?* "." table) (modify-syntax-entry ?/ "." table) + (modify-syntax-entry ?% "." table) ; bug#8820 (modify-syntax-entry ?\' "\"" table) (modify-syntax-entry ?\" "\"" table) ;; Consistent with GNU Fortran's default -- see the manual. |