Skip to content

Commit

Permalink
fix parseBool fails when next token is tkComment
Browse files Browse the repository at this point in the history
Signed-off-by: George Lemon <[email protected]>
  • Loading branch information
georgelemon committed May 10, 2024
1 parent 7ab8e79 commit 8b69932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nyml/parser.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 8b69932

Please sign in to comment.