diff --git a/compiler/ast/ast_types.nim b/compiler/ast/ast_types.nim index f8059e77699..86be02e8ffa 100644 --- a/compiler/ast/ast_types.nim +++ b/compiler/ast/ast_types.nim @@ -245,7 +245,9 @@ type const nkUIntLiterals* = {nkCharLit, nkUIntLit..nkUInt64Lit} + ## Unsigned int literals nkSIntLiterals* = {nkIntLit..nkInt64Lit} + ## Signed int literals nkIntLiterals* = nkUIntLiterals + nkSIntLiterals nkFloatLiterals* = {nkFloatLit..nkFloat64Lit} nkStrLiterals* = {nkStrLit..nkTripleStrLit} diff --git a/compiler/ast/filters.nim b/compiler/ast/filters.nim index cf1a0f0d89e..06548cbae15 100644 --- a/compiler/ast/filters.nim +++ b/compiler/ast/filters.nim @@ -38,7 +38,7 @@ proc invalidPragma(conf: ConfigRef; n: PNode) = proc getArg(conf: ConfigRef; n: PNode, name: string, pos: int): PNode = result = nil case n.kind - of nkWithoutSons: return + of nkWithoutSons: discard # these can't have args of nkWithSons: for i in 1..