fixes #20132; fixes the broken jsondoc comand [backport] (#20135)

* fixes #20132; fixes the broken jsondoc comand

* add testcase
This commit is contained in:
ringabout 2022-08-04 14:49:51 +08:00 • committed by GitHub
commit 2aeb0d516b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 1 deletions

11
tests/misc/mjsondoc.nim Normal file
View file

@ -0,0 +1,11 @@
proc doSomething*(x, y: int): int =
## do something
x + y
const
a* = 1 ## echo 1234
b* = "test"
type
MyEnum* = enum
foo, bar