From bed56199867537fc3c5bcca9727f7be7dc5d2157 Mon Sep 17 00:00:00 2001 From: Andy Davidoff Date: Mon, 6 Jul 2020 17:03:56 -0400 Subject: [PATCH] 0.8.9: fix parse error for shashlick --- nimph.nimble | 2 +- src/nimph/config.nim | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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', ' '}