nimpretty: detect '; vs ,' style based on the first usage of the token in parameter lists

This commit is contained in:
Araq 2018-06-26 01:43:41 +02:00
commit 5976bd96be
2 changed files with 8 additions and 2 deletions

View file

@ -122,7 +122,7 @@ type
fixedUntil: int # marks where we must not go in the content
altSplitPos: array[SplitKind, int] # alternative split positions
proc openEmitter*[T, S](em: var Emitter, config: ConfigRef, fileIdx: FileIndex) {.pragmaHereWrongCurlyEnd} =
proc openEmitter*[T, S](em: var Emitter; config: ConfigRef, fileIdx: FileIndex) {.pragmaHereWrongCurlyEnd} =
let outfile = changeFileExt(config.toFullPath(fileIdx), ".pretty.nim")
em.f = llStreamOpen(outfile, fmWrite)
em.config = config