parent
3241df2a13
commit
c56ba3f06a
2 changed files with 7 additions and 2 deletions
|
|
@ -1824,8 +1824,9 @@ proc parseRoutine(p: var Parser, kind: TNodeKind): PNode =
|
||||||
# => moves comment `foo` to `fn`
|
# => moves comment `foo` to `fn`
|
||||||
result.comment = body[0].comment
|
result.comment = body[0].comment
|
||||||
body[0].comment = ""
|
body[0].comment = ""
|
||||||
else:
|
#else:
|
||||||
assert false, p.lex.config$body.info # avoids hard to track bugs, fail early.
|
# assert false, p.lex.config$body.info # avoids hard to track bugs, fail early.
|
||||||
|
# Yeah, that worked so well. There IS a bug in this logic, now what?
|
||||||
|
|
||||||
proc newCommentStmt(p: var Parser): PNode =
|
proc newCommentStmt(p: var Parser): PNode =
|
||||||
#| commentStmt = COMMENT
|
#| commentStmt = COMMENT
|
||||||
|
|
|
||||||
|
|
@ -69,3 +69,7 @@ type
|
||||||
|
|
||||||
MyEnum3* = enum
|
MyEnum3* = enum
|
||||||
value5 ## only document the enum value
|
value5 ## only document the enum value
|
||||||
|
|
||||||
|
# bug #18847
|
||||||
|
proc close*() = ## asdfasdfsdfa
|
||||||
|
discard ## adsfasdfads
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue