handle dos line endings in config files

This commit is contained in:
Gokcehan committed 2017-10-30 23:28:34 +03:00
1 parent 94bb62f7c0
commit 5aac87bda6
1 file changed
+3
+3
View File
@@ -178,6 +178,9 @@ scan:
s.tok = string(s.buf[beg:s.off])
s.cmd = false
s.sem = true
case s.chr == '\r':
s.next()
goto scan
case s.chr == '\n':
if s.sem {
s.typ = tokenSemicolon