22 lines
324 B
TOML
22 lines
324 B
TOML
[[snippets]]
|
|
prefix = 'Struct'
|
|
description = 'Struct declaration'
|
|
body = '''
|
|
const $1 = struct {
|
|
${0}
|
|
};
|
|
'''
|
|
|
|
[[snippets]]
|
|
prefix = 'Enum'
|
|
description = 'Enum declaration'
|
|
body = '''
|
|
const $1 = union(enum) {
|
|
${0}
|
|
};
|
|
'''
|
|
|
|
[[snippets]]
|
|
prefix = 'dbg'
|
|
description = 'Debug print'
|
|
body = 'std.debug.print("$1\n", .{ $0 });'
|