From aad4ed776b56144a993bcb104d887ff69c9d3177 Mon Sep 17 00:00:00 2001 From: Araq Date: Wed, 18 Nov 2015 11:19:43 +0100 Subject: [PATCH] allows macros to access documentation comments --- compiler/vm.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/vm.nim b/compiler/vm.nim index 495b0c7475..afc0034521 100644 --- a/compiler/vm.nim +++ b/compiler/vm.nim @@ -1190,6 +1190,7 @@ proc rawExecute(c: PCtx, start: int, tos: PStackFrame): TFullReg = createStr regs[ra] let a = regs[rb].node if a.kind in {nkStrLit..nkTripleStrLit}: regs[ra].node.strVal = a.strVal + elif a.kind == nkCommentStmt: regs[ra].node.strVal = a.comment else: stackTrace(c, tos, pc, errFieldXNotFound, "strVal") of opcSlurp: decodeB(rkNode)