mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 12:21:25 -08:00
(get-method-definition): Fix regexps.
This commit is contained in:
parent
76b17c0b66
commit
f27f16ed4f
1 changed files with 3 additions and 3 deletions
|
|
@ -486,15 +486,15 @@ Has a preference of looking backwards."
|
|||
(defun get-method-definition ()
|
||||
(let ((md "["))
|
||||
(save-excursion
|
||||
(if (re-search-backward "^@implementation \\(.*\\)$" nil t)
|
||||
(if (re-search-backward "^@implementation\\s-*\\([A-Za-z_]*\\)" nil t)
|
||||
(get-method-definition-1 " ")))
|
||||
(save-excursion
|
||||
(cond
|
||||
((re-search-backward "^\\([-+]\\)[ \t\n\f\r]*\\(([^)]*)\\)?" nil t)
|
||||
((re-search-forward "^\\([-+]\\)[ \t\n\f\r]*\\(([^)]*)\\)?\\s-*" nil t)
|
||||
(get-method-definition-1 "")
|
||||
(while (not (looking-at "[{;]"))
|
||||
(looking-at
|
||||
"\\([^ ;{:\t\n\f\r]*:?\\)\\(([^)]*)\\)?[^ ;{:\t\n\f\r]*[ \t\n\f\r]*")
|
||||
"\\([A-Za-z_]*:?\\)\\s-*\\(([^)]*)\\)?[A-Za-z_]*[ \t\n\f\r]*")
|
||||
(get-method-definition-1 ""))
|
||||
(concat md "]"))))))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue