From 5a44f5ccd44babd00997b44502c07a9ac7638d1e Mon Sep 17 00:00:00 2001 From: Clyybber Date: Fri, 8 Mar 2024 23:42:13 +0100 Subject: [PATCH] Remove return and add some comments --- compiler/ast/ast_types.nim | 2 ++ compiler/ast/filters.nim | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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..