Phase 8: static_assert, comptime, #emit, own keyword, trait objects (&dyn Trait), associated types

This commit is contained in:
2026-06-01 11:04:47 +03:00
parent 21f8b2e85a
commit 5830548d54
10 changed files with 487 additions and 42 deletions
+2
View File
@@ -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: