Extract runnables that specify doccmd (#19275) [backport:1.6]
This commit is contained in:
parent
ea475a4e98
commit
4da7dbffc5
2 changed files with 22 additions and 2 deletions
|
|
@ -1715,8 +1715,8 @@ proc extractDocCommentsAndRunnables*(n: NimNode): NimNode =
|
|||
case ni.kind
|
||||
of nnkCommentStmt:
|
||||
result.add ni
|
||||
of nnkCall:
|
||||
if ni[0].kind == nnkIdent and ni[0].strVal == "runnableExamples":
|
||||
of nnkCall, nnkCommand:
|
||||
if ni[0].kind == nnkIdent and ni[0].eqIdent "runnableExamples":
|
||||
result.add ni
|
||||
else: break
|
||||
else: break
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue