diff options
author | Araq <rumpf_a@web.de> | 2019-07-09 10:51:41 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2019-07-09 11:38:01 +0200 |
commit | fc3419348381316e7e48118e85cca7c01244e398 (patch) | |
tree | 0987992a076d9d1d9821c512daa42b02b3be195e /compiler/renderer.nim | |
parent | 0193c8ad2e01140fe86891f90b49a0292b480d2d (diff) | |
download | Nim-fc3419348381316e7e48118e85cca7c01244e398.tar.gz |
nimpretty: code cleanups
Diffstat (limited to 'compiler/renderer.nim')
-rw-r--r-- | compiler/renderer.nim | 11 |
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: |