From c33e01544aadff5f49e2574bd173231ea2127209 Mon Sep 17 00:00:00 2001 From: Alexandros Naskos Date: Thu, 18 Jun 2020 02:49:34 +0300 Subject: [PATCH] Slice fix --- src/semantic_tokens.zig | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/semantic_tokens.zig b/src/semantic_tokens.zig index cbaf31a..ca3221c 100644 --- a/src/semantic_tokens.zig +++ b/src/semantic_tokens.zig @@ -455,9 +455,6 @@ fn writeNodeTokens(builder: *Builder, arena: *std.heap.ArenaAllocator, store: *D try await @asyncCall(child_frame, {}, writeNodeTokens, builder, arena, store, info.len_expr); }, .SliceType, .PtrType => |info| { - if (prefix_op.op == .SliceType) - try writeToken(builder, prefix_op.op_token + 1, tok_type); - if (info.align_info) |align_info| { try writeToken(builder, align_info.node.firstToken() - 2, .keyword); try await @asyncCall(child_frame, {}, writeNodeTokens, builder, arena, store, align_info.node);