nimpretty improvements

This commit is contained in:
Andreas Rumpf 2018-06-19 09:42:33 +02:00
commit dd81d9d5b7
3 changed files with 60 additions and 43 deletions

View file

@ -102,7 +102,7 @@ proc openParser*(p: var TParser, fileIdx: FileIndex, inputStream: PLLStream,
initToken(p.tok)
openLexer(p.lex, fileIdx, inputStream, cache, config)
when defined(nimpretty2):
openEmitter(p.em, config, fileIdx)
openEmitter(p.em, cache, config, fileIdx)
getTok(p) # read the first token
p.firstTok = true
p.strongSpaces = strongSpaces