diff --git a/nimph.nimble b/nimph.nimble index b7273ba..25ae311 100644 --- a/nimph.nimble +++ b/nimph.nimble @@ -1,4 +1,4 @@ -version = "0.8.8" +version = "0.8.9" author = "disruptek" description = "nim package handler from the future" license = "MIT" diff --git a/src/nimph/config.nim b/src/nimph/config.nim index 9f8142b..291bcce 100644 --- a/src/nimph/config.nim +++ b/src/nimph/config.nim @@ -229,8 +229,11 @@ proc parseProjectCfg*(input: Target): ProjectCfgParsed = result.why = &"config file {input} doesn't exist" break success - let + var content = readFile($input) + if not content.endsWith("\n"): + content &= "\n" + let peggy = peg "document": nl <- ?'\r' * '\n' white <- {'\t', ' '}