include anytype in list of primitive types

This commit is contained in:
Meghan Denny 2021-09-30 18:46:53 -07:00
parent 0406f7cc93
commit 86e370add0

View File

@ -616,6 +616,7 @@ pub fn isTypeIdent(tree: Analysis.Tree, token_idx: Ast.TokenIndex) bool {
.{"noreturn"}, .{"type"}, .{"noreturn"}, .{"type"},
.{"anyerror"}, .{"comptime_int"}, .{"anyerror"}, .{"comptime_int"},
.{"comptime_float"}, .{"anyframe"}, .{"comptime_float"}, .{"anyframe"},
.{"anytype"},
}); });
const text = tree.tokenSlice(token_idx); const text = tree.tokenSlice(token_idx);