From 8b6993245e835597c2d05821f73f370c1d1df450 Mon Sep 17 00:00:00 2001 From: George Lemon Date: Fri, 10 May 2024 16:55:08 +0300 Subject: [PATCH] fix `parseBool` fails when next token is `tkComment` Signed-off-by: George Lemon --- src/nyml/parser.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nyml/parser.nim b/src/nyml/parser.nim index 35c9bab..01dce7e 100644 --- a/src/nyml/parser.nim +++ b/src/nyml/parser.nim @@ -369,7 +369,7 @@ proc parseString(p: var Parser): Node = walk p template checkInlineString {.dirty.} = - if p.next.kind != tkEOF and p.next.line == p.curr.line: + if p.next.kind notin {tkEOF, tkComment} and p.next.line == p.curr.line: let this = p.curr return p.parseUnquotedStrings(this)