summary refs log tree commit diff stats
path: root/nimpretty
diff options
context:
space:
mode:
authorClyybber <darkmine956@gmail.com>2020-08-28 22:18:09 +0200
committerGitHub <noreply@github.com>2020-08-28 22:18:09 +0200
commit13e659cfec83eb3c2c3c2bbbf10d01ba59bc0d5b (patch)
tree6df6a9dfc3b5f0ba7f27452c8f84b55a957b73ba /nimpretty
parentf8c48fc1863a243718acf86b699baed1a5c1512e (diff)
downloadNim-13e659cfec83eb3c2c3c2bbbf10d01ba59bc0d5b.tar.gz
Big compiler Cleanup (#14777)
Diffstat (limited to 'nimpretty')
-rw-r--r--nimpretty/nimpretty.nim12
1 files changed, 6 insertions, 6 deletions
diff --git a/nimpretty/nimpretty.nim b/nimpretty/nimpretty.nim
index bedf9f248..0fb2c6a9e 100644
--- a/nimpretty/nimpretty.nim
+++ b/nimpretty/nimpretty.nim
@@ -54,12 +54,12 @@ proc prettyPrint(infile, outfile: string, opt: PrettyOptions) =
   let f = splitFile(outfile.expandTilde)
   conf.outFile = RelativeFile f.name & f.ext
   conf.outDir = toAbsoluteDir f.dir
-  var p: TParsers
-  p.parser.em.indWidth = opt.indWidth
-  if setupParsers(p, fileIdx, newIdentCache(), conf):
-    p.parser.em.maxLineLen = opt.maxLineLen
-    discard parseAll(p)
-    closeParsers(p)
+  var parser: Parser
+  parser.em.indWidth = opt.indWidth
+  if setupParser(parser, fileIdx, newIdentCache(), conf):
+    parser.em.maxLineLen = opt.maxLineLen
+    discard parseAll(parser)
+    closeParser(parser)
 
 proc main =
   var outfile, outdir: string