mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-27 07:18:15 +00:00
fixes whitespace related endless loop in renderer.nim (#25750)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user