summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-04-29 01:03:24 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-04-29 01:03:24 +0200
commite3e18b277cab8188cb8c859a72690b7b0815dd24 (patch)
tree41cc695a1bac8d40902f30cae52257e030ba7121
parent9b8603adcd7ce8fa9563137bcbe6c350e07a6fe0 (diff)
downloadNim-e3e18b277cab8188cb8c859a72690b7b0815dd24.tar.gz
renderer.nim: bugfix
-rw-r--r--compiler/renderer.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/renderer.nim b/compiler/renderer.nim
index 2a65a10a8..11d8e86a7 100644
--- a/compiler/renderer.nim
+++ b/compiler/renderer.nim
@@ -1064,6 +1064,7 @@ proc gsub(g: var TSrcGen, n: PNode, c: TContext) =
     if n.len > 1:
       let opr = if n[0].kind == nkIdent: n[0].ident
                 elif n[0].kind == nkSym: n[0].sym.name
+                elif n[0].kind in {nkOpenSymChoice, nkClosedSymChoice}: n[0][0].sym.name
                 else: nil
       if n[1].kind == nkPrefix or (opr != nil and renderer.isKeyword(opr)):
         put(g, tkSpaces, Space)