From d1aeec4c41faa417a81b20c89768abd3fa08a848 Mon Sep 17 00:00:00 2001 From: halting Date: Thu, 17 Nov 2022 11:24:00 -0300 Subject: [PATCH] update snippets --- src/data/snippets.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/snippets.zig b/src/data/snippets.zig index d04150b..8479f52 100644 --- a/src/data/snippets.zig +++ b/src/data/snippets.zig @@ -74,9 +74,9 @@ pub const generic = [_]Snipped{ .{ .label = "pub fn", .kind = .Snippet, .text = "pub fn ${1:name}($2) ${3:!void} {$0}" }, .{ .label = "forv", .kind = .Snippet, .text = "for ($1) |${2:value}| {$0}" }, .{ .label = "fori", .kind = .Snippet, .text = "for ($1) |_, ${2:i}| {$0}" }, - .{ .label = "forvi", .kind = .Snippet, .text = "for ($1) |${2:value},${3:i}| {$0}" }, + .{ .label = "forvi", .kind = .Snippet, .text = "for ($1) |${2:value}, ${3:i}| {$0}" }, .{ .label = "if else", .kind = .Snippet, .text = "if ($1) {$2} else {$0}" }, - .{ .label = "catch switch", .kind = .Snippet, .text = "catch |${1:err}| switch(${1:err}) {$0};" }, + .{ .label = "catch switch", .kind = .Snippet, .text = "catch |${1:err}| switch (${1:err}) {$0};" }, // snippets .{ .label = "main", .kind = .Snippet, .text = "pub fn main() !void {$0}" },