From dba92c09ec13004e8ef4be5ea8d558524309ffac Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Mon, 25 May 2020 16:51:55 -0700 Subject: [PATCH] _ --- compiler/lexer.nim | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/compiler/lexer.nim b/compiler/lexer.nim index bd71a6ad5b429..c13062b5641bb 100644 --- a/compiler/lexer.nim +++ b/compiler/lexer.nim @@ -49,7 +49,11 @@ type tkTemplate, tkTry, tkTuple, tkType, tkUsing, tkVar, tkWhen, tkWhile, tkXor, - tkYield, # end of keywords + tkYield, + tkAlias, + # reserved for future `alias foo = expr` where expr resolves to a symbol (nkSym) + # other possibilities would be: `symbol`, `using`, `as`, `aliassym` + # end of keywords tkIntLit, tkInt8Lit, tkInt16Lit, tkInt32Lit, tkInt64Lit, tkUIntLit, tkUInt8Lit, tkUInt16Lit, tkUInt32Lit, tkUInt64Lit, tkFloatLit, tkFloat32Lit, tkFloat64Lit, tkFloat128Lit, @@ -90,7 +94,7 @@ const "template", "try", "tuple", "type", "using", "var", "when", "while", "xor", - "yield", + "yield", "alias", "tkIntLit", "tkInt8Lit", "tkInt16Lit", "tkInt32Lit", "tkInt64Lit", "tkUIntLit", "tkUInt8Lit", "tkUInt16Lit", "tkUInt32Lit", "tkUInt64Lit", "tkFloatLit", "tkFloat32Lit", "tkFloat64Lit", "tkFloat128Lit",