diff --git a/lib/rocco.rb b/lib/rocco.rb index 8d69bf4..ed9fe10 100644 --- a/lib/rocco.rb +++ b/lib/rocco.rb @@ -220,8 +220,7 @@ def generate_comment_chars # form `[docs, code]` where both elements are arrays containing the # raw lines parsed from the input file, comment characters stripped. def parse(data) - sections = [] - docs, code = [], [] + sections, docs, code = [], [], [] lines = data.split("\n") # The first line is ignored if it is a shebang line. We also ignore the