From 86e370add027d76bfcc898d944603a8bea444e41 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Thu, 30 Sep 2021 18:46:53 -0700 Subject: [PATCH] include `anytype` in list of primitive types --- src/analysis.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/analysis.zig b/src/analysis.zig index 1f2e22f..169e155 100644 --- a/src/analysis.zig +++ b/src/analysis.zig @@ -616,6 +616,7 @@ pub fn isTypeIdent(tree: Analysis.Tree, token_idx: Ast.TokenIndex) bool { .{"noreturn"}, .{"type"}, .{"anyerror"}, .{"comptime_int"}, .{"comptime_float"}, .{"anyframe"}, + .{"anytype"}, }); const text = tree.tokenSlice(token_idx);