allow comments after continuing lines, like this:

OPT_I=(?i)( \
                agresion| \             # Paul
                apex theory| \
                at the drive in| \      # Paul
                bad religion| \
This commit is contained in:
Ward Wouts 2002-08-28 11:54:55 +00:00
parent e20d358a80
commit 6425530640

View file

@ -125,6 +125,7 @@ def parse_config(default = {})
lines.collect!{|x| lines.collect!{|x|
x.sub!(/^\s*/, "") x.sub!(/^\s*/, "")
x.sub!(/\#.*$/, "") x.sub!(/\#.*$/, "")
x.sub!(/\s*$/, "")
x.chomp x.chomp
} }
while i < lines.length while i < lines.length