nimpretty: fixes #10295
This commit is contained in:
parent
554908df0c
commit
447cc1ff09
4 changed files with 30 additions and 5 deletions
|
|
@ -96,6 +96,8 @@ proc getTok(p: var TParser) =
|
|||
p.hasProgress = true
|
||||
when defined(nimpretty2):
|
||||
emitTok(p.em, p.lex, p.tok)
|
||||
# skip the additional tokens that nimpretty needs but the parser has no
|
||||
# interest in:
|
||||
while p.tok.tokType == tkComment:
|
||||
rawGetTok(p.lex, p.tok)
|
||||
emitTok(p.em, p.lex, p.tok)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue