summary refs log tree commit diff stats
path: root/compiler/renderer.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-07-09 10:51:41 +0200
committerAraq <rumpf_a@web.de>2019-07-09 11:38:01 +0200
commitfc3419348381316e7e48118e85cca7c01244e398 (patch)
tree0987992a076d9d1d9821c512daa42b02b3be195e /compiler/renderer.nim
parent0193c8ad2e01140fe86891f90b49a0292b480d2d (diff)
downloadNim-fc3419348381316e7e48118e85cca7c01244e398.tar.gz
nimpretty: code cleanups
Diffstat (limited to 'compiler/renderer.nim')
-rw-r--r--compiler/renderer.nim11
1 files changed, 4 insertions, 7 deletions
diff --git a/compiler/renderer.nim b/compiler/renderer.nim
index 0a73d6ee9..80ce28666 100644
--- a/compiler/renderer.nim
+++ b/compiler/renderer.nim
@@ -64,14 +64,11 @@ proc renderDefinitionName*(s: PSym, noQuotes = false): string =
   else:
     result = '`' & x & '`'
 
-when not defined(nimpretty):
-  const
-    IndentWidth = 2
-    longIndentWid = IndentWidth * 2
-else:
-  template IndentWidth: untyped = lexer.gIndentationWidth
-  template longIndentWid: untyped = IndentWidth() * 2
+const
+  IndentWidth = 2
+  longIndentWid = IndentWidth * 2
 
+when defined(nimpretty):
   proc minmaxLine(n: PNode): (int, int) =
     case n.kind
     of nkTripleStrLit: