nimpretty bugfix
This commit is contained in:
parent
2d5fdd288e
commit
125ccd303e
1 changed files with 3 additions and 1 deletions
|
|
@ -306,7 +306,9 @@ proc ulitAux(g: TSrcGen; n: PNode, x: BiggestInt, size: int): string =
|
||||||
|
|
||||||
proc atom(g: TSrcGen; n: PNode): string =
|
proc atom(g: TSrcGen; n: PNode): string =
|
||||||
when defined(nimpretty):
|
when defined(nimpretty):
|
||||||
if true:
|
if n.info.offsetA <= n.info.offsetB:
|
||||||
|
# for some constructed tokens this can not be the case and we're better
|
||||||
|
# off to not mess with the offset then.
|
||||||
return substr(g.origContent, n.info.offsetA, n.info.offsetB)
|
return substr(g.origContent, n.info.offsetA, n.info.offsetB)
|
||||||
var f: float32
|
var f: float32
|
||||||
case n.kind
|
case n.kind
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue