You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Comment nodes are not flattened when they are the single child inside a statement node when in a template definition. They are flattened inside other routine definitions like macros and procs
Nim Compiler Version 1.9.1 [Linux: amd64]
Compiled at 2023-02-01
Copyright (c) 2006-2023 by Andreas Rumpf
git hash: b5f64f5
active boot switches: -d:release
Current Output
StmtList
ProcDef
Sym "foo"
Empty
Empty
FormalParams
Empty
Empty
Empty
StmtList
CommentStmt "Some documentation" <-- Comment has been taken out of statement list
DiscardStmt
Empty
TemplateDef
Sym "bar"
Empty
Empty
FormalParams
Empty
Empty
Empty
StmtList
StmtList <-- Inside a statement list which means the comment won't be rendered in docs
CommentStmt "Some documentation"
DiscardStmt
Empty
Description
Comment nodes are not flattened when they are the single child inside a statement node when in a template definition. They are flattened inside other routine definitions like macros and procs
Example
Nim Version
Nim Compiler Version 1.9.1 [Linux: amd64]
Compiled at 2023-02-01
Copyright (c) 2006-2023 by Andreas Rumpf
git hash: b5f64f5
active boot switches: -d:release
Current Output
Expected Output
Possible Solution
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: