mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* lib/rdoc/parsers/parse_c.rb (find_class_comment): fix for class
document with prototypes. [ruby-core:06863] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									8e4090f4b5
								
							
						
					
					
						commit
						55c4223064
					
				
					 2 changed files with 6 additions and 1 deletions
				
			
		|  | @ -1,3 +1,8 @@ | |||
| Wed Dec 14 23:50:20 2005  Nobuyoshi Nakada  <nobu@ruby-lang.org> | ||||
| 
 | ||||
| 	* lib/rdoc/parsers/parse_c.rb (find_class_comment): fix for class | ||||
| 	  document with prototypes.  [ruby-core:06863] | ||||
| 
 | ||||
| Wed Dec 14 23:39:53 2005  Nobuyoshi Nakada  <nobu@ruby-lang.org> | ||||
| 
 | ||||
| 	* dir.c (has_magic): glob names contain alphabets to enable case fold | ||||
|  |  | |||
|  | @ -262,7 +262,7 @@ module RDoc | |||
|     def find_class_comment(class_name, class_meth) | ||||
|       comment = nil | ||||
|       if @body =~ %r{((?>/\*.*?\*/\s+)) | ||||
|                      (static\s+)?void\s+Init_#{class_name}\s*\(\)}xmi | ||||
|                      (static\s+)?void\s+Init_#{class_name}\s*(?:_\(\s*)?\(\s*(?:void\s*)\)}xmi | ||||
|         comment = $1 | ||||
|       elsif @body =~ %r{Document-(class|module):\s#{class_name}\s*?\n((?>.*?\*/))}m | ||||
|         comment = $2 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 nobu
						nobu