fixes whitespace related endless loop in renderer.nim (#25750)

This commit is contained in:
Andreas Rumpf
2026-04-16 09:44:58 +02:00
committed by GitHub
parent 3eb4a60b6b
commit b4d4028afa
2 changed files with 12 additions and 2 deletions

View File

@@ -350,3 +350,12 @@ else:
discard"""
a()
# bug: form feed character in comment should not hang renderTree
macro formfeedComment(): untyped =
result = newNimNode(nnkStmtList)
var c = newNimNode(nnkCommentStmt)
c.strVal = "hello\x0Cworld"
result.add c
formfeedComment()