ruby-changes:6895
From: knu <ko1@a...>
Date: Thu, 7 Aug 2008 18:04:45 +0900 (JST)
Subject: [ruby-changes:6895] Ruby:r18413 (trunk): * misc/ruby-mode.el (ruby-imenu-create-index-in-block): Fix the
knu 2008-08-07 18:04:27 +0900 (Thu, 07 Aug 2008) New Revision: 18413 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=18413 Log: * misc/ruby-mode.el (ruby-imenu-create-index-in-block): Fix the regexp to only pick definition lines properly. `module_funtion' is not a definition of a module named `_function'. Modified files: trunk/ChangeLog trunk/misc/ruby-mode.el Index: ChangeLog =================================================================== --- ChangeLog (revision 18412) +++ ChangeLog (revision 18413) @@ -1,3 +1,9 @@ +Thu Aug 7 18:01:44 2008 Akinori MUSHA <knu@i...> + + * misc/ruby-mode.el (ruby-imenu-create-index-in-block): Fix the + regexp to only pick definition lines properly. `module_funtion' + is not a definition of a module named `_function'. + Thu Aug 7 17:47:55 2008 Nobuyoshi Nakada <nobu@r...> * enc/depend: add transdb.c. Index: misc/ruby-mode.el =================================================================== --- misc/ruby-mode.el (revision 18412) +++ misc/ruby-mode.el (revision 18413) @@ -187,7 +187,7 @@ (let ((index-alist '()) name next pos decl sing) (goto-char beg) - (while (re-search-forward "^\\s *\\(\\(class\\>\\(\\s *<<\\)?\\|module\\>\\)\\s *\\([^\(<\n ]+\\)\\|\\(def\\|alias\\)\\>\\s *\\([^\(\n ]+\\)\\)" end t) + (while (re-search-forward "^\\s *\\(\\(class\\s +\\|\\(class\\s *<<\\s *\\)\\|module\\s +\\)\\([^\(<\n ]+\\)\\|\\(def\\|alias\\)\\s +\\([^\(\n ]+\\)\\)" end t) (setq sing (match-beginning 3)) (setq decl (match-string 5)) (setq next (match-end 0)) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/