[前][次][番号順一覧][スレッド一覧]

ruby-changes:6989

From: knu <ko1@a...>
Date: Tue, 12 Aug 2008 14:05:59 +0900 (JST)
Subject: [ruby-changes:6989] Ruby:r18506 (ruby_1_8): * misc/ruby-mode.el (ruby-imenu-create-index-in-block): Fix the

knu	2008-08-12 14:05:38 +0900 (Tue, 12 Aug 2008)

  New Revision: 18506

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=18506

  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:
    branches/ruby_1_8/ChangeLog
    branches/ruby_1_8/misc/ruby-mode.el

Index: ruby_1_8/ChangeLog
===================================================================
--- ruby_1_8/ChangeLog	(revision 18505)
+++ ruby_1_8/ChangeLog	(revision 18506)
@@ -1,3 +1,9 @@
+Tue Aug 12 13:57:11 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'.
+
 Mon Aug 11 14:39:46 2008  Yukihiro Matsumoto  <matz@r...>
 
 	* class.c (clone_method): should copy cbase in cref as well.
Index: ruby_1_8/misc/ruby-mode.el
===================================================================
--- ruby_1_8/misc/ruby-mode.el	(revision 18505)
+++ ruby_1_8/misc/ruby-mode.el	(revision 18506)
@@ -178,7 +178,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/

[前][次][番号順一覧][スレッド一覧]