renderer.nim: bugfix
This commit is contained in:
parent
9b8603adcd
commit
e3e18b277c
1 changed files with 1 additions and 0 deletions
|
|
@ -1064,6 +1064,7 @@ proc gsub(g: var TSrcGen, n: PNode, c: TContext) =
|
||||||
if n.len > 1:
|
if n.len > 1:
|
||||||
let opr = if n[0].kind == nkIdent: n[0].ident
|
let opr = if n[0].kind == nkIdent: n[0].ident
|
||||||
elif n[0].kind == nkSym: n[0].sym.name
|
elif n[0].kind == nkSym: n[0].sym.name
|
||||||
|
elif n[0].kind in {nkOpenSymChoice, nkClosedSymChoice}: n[0][0].sym.name
|
||||||
else: nil
|
else: nil
|
||||||
if n[1].kind == nkPrefix or (opr != nil and renderer.isKeyword(opr)):
|
if n[1].kind == nkPrefix or (opr != nil and renderer.isKeyword(opr)):
|
||||||
put(g, tkSpaces, Space)
|
put(g, tkSpaces, Space)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue