mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* 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'. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									380e558f33
								
							
						
					
					
						commit
						3f91366caf
					
				
					 2 changed files with 7 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,9 @@
 | 
			
		|||
Thu Aug  7 18:01:44 2008  Akinori MUSHA  <knu@iDaemons.org>
 | 
			
		||||
 | 
			
		||||
	* 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@ruby-lang.org>
 | 
			
		||||
 | 
			
		||||
	* enc/depend: add transdb.c.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -187,7 +187,7 @@ Also ignores spaces after parenthesis when 'space."
 | 
			
		|||
  (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))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue