Skip to content

Commit

Permalink
templates also need reordering
Browse files Browse the repository at this point in the history
  • Loading branch information
arnetheduck committed Jan 4, 2024
1 parent 9506b29 commit bd1e173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/phrenderer.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,7 @@ proc reorderPostfix(n: PNode): bool =
# comments or they end up becoming the last statement in the proc and
# thus breaking it
# TODO enable AST checking for nkCommentStmt to catch this :/
n.kind in procDefs and n.postfix.len > 0 and isDocComment(n.postfix[0].literal) and
n.kind in routineDefs and n.postfix.len > 0 and isDocComment(n.postfix[0].literal) and
n[bodyPos].kind != nkEmpty

proc gproc(g: var TOutput, n: PNode) =
Expand Down

0 comments on commit bd1e173

Please sign in to comment.