summaryrefslogtreecommitdiff
path: root/jni/ruby/ext/ripper/tools/strip.rb
blob: 99413c361dca52c85fbec4827f591bfd5a1b9f2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
last_is_void = false
ARGF.each do |line|
  if line.strip.empty?
    #puts() unless last_is_void
    last_is_void = true
  elsif /\A\#/ === line
    ;
  else
    print line
    last_is_void = false
  end
end