|
# File rbot/language.rb, line 16
def scan
@strings = Hash.new
current_key = nil
IO.foreach(@file) {|l|
next if l =~ /^$/
next if l =~ /^\s*#/
if(l =~ /^(\S+):$/)
@strings[$1] = Array.new
current_key = $1
elsif(l =~ /^\s*(.*)$/)
@strings[current_key] << $1
end
}
end
|