diff --git a/cfg.go b/cfg.go index b156eff..c368667 100644 --- a/cfg.go +++ b/cfg.go @@ -129,12 +129,12 @@ func parseFile(fn string, i *item) { line, err := r.ReadString('\n') l := strings.Trim(line, " \r\n\t") if err != nil { - if l != "" { + if l != "" && l[0] != '#' { ii[l] = 1 } break } - if l == "" { + if l == "" || l[0] == '#' { continue } ii[l] = 1