# File lib/kwala/actions/flagged_comments.rb, line 107
  def collect_comments_from_file(file)
    res = Hash.new { |h,k| h[k] = Array.new }
    IO.readlines(file).each_with_index do |line, idx|
      if m = COMMENTREGEXP.match(line)
        res[m[1]]<< [idx + 1 , m[2]]
      end
    end
    res
  end