Phase 8: static_assert, comptime, #emit, own keyword, trait objects (&dyn Trait), associated types
This commit is contained in:
@@ -476,6 +476,8 @@ proc scanSymbol(lex: var Lexer, startLoc: SourceLocation): Token =
|
||||
return lex.makeToken(tkHashTime, startLoc, startPos)
|
||||
elif afterHash == 'm' and lex.matchStr("module"):
|
||||
return lex.makeToken(tkHashModule, startLoc, startPos)
|
||||
elif afterHash == 'e' and lex.matchStr("emit"):
|
||||
return lex.makeToken(tkHashEmit, startLoc, startPos)
|
||||
else:
|
||||
return lex.makeToken(tkHash, startLoc, startPos)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user