Support for comments
This commit is contained in:
parent
1d4ca55f2a
commit
96a20b9278
|
@ -52,7 +52,8 @@ proc readPart(path: Path): seq[string] =
|
||||||
try:
|
try:
|
||||||
var line: string = readLine(pathFile)
|
var line: string = readLine(pathFile)
|
||||||
while line != "":
|
while line != "":
|
||||||
result.add(line)
|
if line.startsWith("#") == false:
|
||||||
|
result.add(line)
|
||||||
line = readLine(pathFile)
|
line = readLine(pathFile)
|
||||||
except EOFError as exception:
|
except EOFError as exception:
|
||||||
discard
|
discard
|
||||||
|
|
1
tests/fixtures/paths.d/01-bilbo
vendored
1
tests/fixtures/paths.d/01-bilbo
vendored
|
@ -1 +1,2 @@
|
||||||
/Users/bilbo/opt/bin
|
/Users/bilbo/opt/bin
|
||||||
|
#/Users/bilbo/.local/bin
|
||||||
|
|
Loading…
Reference in New Issue
Block a user