mirror of
https://github.com/nim-lang/Nim.git
synced 2026-09-08 22:47:27 +00:00
new parser works with docgen
This commit is contained in:
@@ -1408,6 +1408,7 @@ proc newCommentStmt(p: var TParser): PNode =
|
||||
#| commentStmt = COMMENT
|
||||
result = newNodeP(nkCommentStmt, p)
|
||||
result.info.line = result.info.line - int16(1) - int16(p.tok.iNumber)
|
||||
result.comment = p.tok.literal
|
||||
getTok(p)
|
||||
|
||||
type
|
||||
|
||||
Reference in New Issue
Block a user