reorder.nim: fixes the indentation

This commit is contained in:
Araq 2020-06-06 20:08:25 +02:00
commit 336f1e63d0

View file

@ -100,8 +100,7 @@ proc computeDeps(cache: IdentCache; n: PNode, declares, uses: var IntSet; topLev
for i in 0..<n.len: computeDeps(cache, n[i], declares, uses, topLevel) for i in 0..<n.len: computeDeps(cache, n[i], declares, uses, topLevel)
of nkPragma: of nkPragma:
let a = n[0] let a = n[0]
if a.kind == nkExprColonExpr and a[0].kind == nkIdent and if a.kind == nkExprColonExpr and a[0].kind == nkIdent and a[0].ident.s == "pragma":
a[0].ident.s == "pragma":
# user defined pragma # user defined pragma
decl(a[1]) decl(a[1])
else: else:
@ -301,7 +300,7 @@ proc hasAccQuotedDef(n: PNode): bool =
result = n[0].hasAccQuoted result = n[0].hasAccQuoted
of nkStmtList, nkStmtListExpr, nkWhenStmt, nkElifBranch, nkElse, nkStaticStmt: of nkStmtList, nkStmtListExpr, nkWhenStmt, nkElifBranch, nkElse, nkStaticStmt:
for a in n: for a in n:
if a.hasAccQuotedDef: if hasAccQuotedDef(a):
return true return true
else: else:
result = false result = false