add nnkMacroDef to RoutineNodes (#13676)

This commit is contained in:
Jasper Jenkins
2020-03-17 15:41:07 -07:00
committed by GitHub
parent fe7b1dfb2a
commit 122751aa52

View File

@@ -1085,7 +1085,7 @@ proc last*(node: NimNode): NimNode {.compileTime.} = node[node.len-1]
const
RoutineNodes* = {nnkProcDef, nnkFuncDef, nnkMethodDef, nnkDo, nnkLambda,
nnkIteratorDef, nnkTemplateDef, nnkConverterDef}
nnkIteratorDef, nnkTemplateDef, nnkConverterDef, nnkMacroDef}
AtomicNodes* = {nnkNone..nnkNilLit}
CallNodes* = {nnkCall, nnkInfix, nnkPrefix, nnkPostfix, nnkCommand,
nnkCallStrLit, nnkHiddenCallConv}