2
3
Fork 0
Browse Source

Allows for single line comments beginning at start of line in .slosh

master
sloum 1 year ago
parent
commit
ce1d6fbfe2
  1. 2
      rc.go

2
rc.go

@ -17,7 +17,7 @@ func getRcLines(path string) ([]string, error) {
func parseRcLines(lines []string) {
for _, line := range lines {
line = strings.TrimSpace(line)
if len(line) == 0 {
if len(line) == 0 || line[0] == '#' {
continue
}
command, _ := ParseCommandLine(line)

Loading…
Cancel
Save