Permalink
Browse files

Fix up new -w warnings about mismatched indentation.

  • Loading branch information...
1 parent c709558 commit d7362c9715da95d416cb8e1a06c20d63684b1d2c drbrain committed Sep 23, 2008
@@ -38,7 +38,7 @@ Methods
<% (method_list["methods"] || []).uniq.each do |method| %>
<%= TexinfoTemplate.new(@v.merge({'method' => method, 'list' => method_list}),
'method.texinfo.erb').render %><% end %>
-<% end # section["method_list"] %>
-<% end %>
+<% end %>
+<% end # if section["method_list"] %>
<% end # @v['class']["sections"] %>
<% end %>
View
@@ -76,7 +76,7 @@ def self.binary?(file)
# Return a parser that can handle a particular extension
def self.can_parse(file_name)
- parser = RDoc::Parser.parsers.find { |regexp, parser| regexp =~ file_name }.last
+ parser = RDoc::Parser.parsers.find { |regexp,| regexp =~ file_name }.last
#
# The default parser should *NOT* parse binary files.
View
@@ -120,7 +120,7 @@ def do_aliases
@stats.add_alias as
end
- end
+ end
def do_classes
@content.scan(/(\w+)\s* = \s*rb_define_module\s*\(\s*"(\w+)"\s*\)/mx) do
@@ -251,7 +251,7 @@ def do_methods
handle_method("method", "rb_mFileTest", meth_name, meth_body, param_count)
handle_method("singleton_method", "rb_cFile", meth_name, meth_body, param_count)
end
- end
+ end
def find_attr_comment(attr_name)
if @content =~ %r{((?>/\*.*?\*/\s+))
View
@@ -1955,7 +1955,7 @@ def parse_constant(container, single, tk, comment)
break
end
when TkNL
- if (nest <= 0) && ((@scanner.lex_state == EXPR_END) || (!@scanner.continue))
+ if (nest <= 0) && ((@scanner.lex_state == EXPR_END) || (!@scanner.continue))
unget_tk(tk)
break
end
View
@@ -190,7 +190,7 @@ def list_files_in_directory(dir, options)
def parse_files(options)
@stats = Stats.new options.verbosity
-
+
files = options.files
files = ["."] if files.empty?
View
@@ -381,7 +381,7 @@ def class_cache
else
@class_cache = create_class_cache
end
-
+
@class_cache
end
@@ -514,7 +514,7 @@ def create_cache_for(klassname, path)
cache[name] = method
end
end
-
+
write_cache cache, path
end
@@ -552,7 +552,7 @@ def lookup_method(name, klass)
def map_dirs(file_name)
@doc_dirs.map { |dir| yield File.join(dir, file_name) }.flatten.compact
end
-
+
##
# Extract the class and method name parts from +name+ like Foo::Bar#baz
@@ -599,29 +599,29 @@ def run
end
elsif name =~ /::|\#|\./ then
klass, = parse_name name
-
+
orig_klass = klass
orig_name = name
-
+
loop do
method = lookup_method name, klass
-
+
break method if method
-
+
ancestor = lookup_ancestor klass, orig_klass
-
+
break unless ancestor
-
+
name = name.sub klass, ancestor
klass = ancestor
end
-
+
raise NotFoundError, orig_name unless method
-
+
display_method method
else
methods = select_methods(/#{name}/)
-
+
if methods.size == 0
raise NotFoundError, name
elsif methods.size == 1
@@ -661,7 +661,7 @@ def write_cache(cache, path)
Marshal.dump cache, cache_file
end
end
-
+
cache
end

0 comments on commit d7362c9

Please sign in to comment.