fixes #310
This commit is contained in:
parent
3cb3813eed
commit
18fbaab216
4 changed files with 45 additions and 22 deletions
|
|
@ -1207,9 +1207,9 @@ proc parseRoutine(p: var TParser, kind: TNodeKind): PNode =
|
|||
addSon(result, ast.emptyNode)
|
||||
indAndComment(p, result) # XXX: document this in the grammar!
|
||||
|
||||
proc newCommentStmt(p: var TParser): PNode =
|
||||
proc newCommentStmt(p: var TParser): PNode =
|
||||
result = newNodeP(nkCommentStmt, p)
|
||||
result.info.line = result.info.line - int16(1)
|
||||
result.info.line = result.info.line - int16(1) - int16(p.tok.iNumber)
|
||||
|
||||
type
|
||||
TDefParser = proc (p: var TParser): PNode {.nimcall.}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue