nimsuggest: bugfix: also output documentation comments

This commit is contained in:
Andreas Rumpf 2017-02-03 17:36:39 +01:00
commit 76a28d8b83
4 changed files with 37 additions and 23 deletions

View file

@ -1,12 +1,12 @@
discard """
$nimsuggest --tester $file
>def $1
def;;skProc;;tdef1.hello;;proc ();;$file;;9;;5;;"";;100
def;;skProc;;tdef1.hello;;proc (): string{.noSideEffect, gcsafe, locks: 0.};;$file;;9;;5;;"Return hello";;100
>def $1
def;;skProc;;tdef1.hello;;proc ();;$file;;9;;5;;"";;100
def;;skProc;;tdef1.hello;;proc (): string{.noSideEffect, gcsafe, locks: 0.};;$file;;9;;5;;"Return hello";;100
"""
proc hello() string =
proc hello(): string =
## Return hello
"Hello"