nimpretty: detect '; vs ,' style based on the first usage of the token in parameter lists
This commit is contained in:
parent
c68d52b69d
commit
5976bd96be
2 changed files with 8 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue