File tree Expand file tree Collapse file tree 2 files changed +37
-4
lines changed Expand file tree Collapse file tree 2 files changed +37
-4
lines changed Original file line number Diff line number Diff line change 584
584
"language" : " loremipsum" ,
585
585
"path" : " ./snippets/loremipsum.json"
586
586
},
587
- {
588
- "language" : " cmake" ,
589
- "path" : " ./snippets/cmake.json"
590
- }
587
+ {
588
+ "language" : " cmake" ,
589
+ "path" : " ./snippets/cmake.json"
590
+ },
591
+ {
592
+ "language" : " zig" ,
593
+ "path" : " ./snippets/zig.json"
594
+ }
591
595
]
592
596
}
593
597
}
Original file line number Diff line number Diff line change
1
+ {
2
+ "Import" : {
3
+ "prefix" : " import" ,
4
+ "body" : [" const ${1} = @import(\" ${1}\" )" ],
5
+ "description" : " Importing Librarys"
6
+ },
7
+ "CImport" : {
8
+ "prefix" : " cimport" ,
9
+ "body" : [
10
+ " const c = @cImport({" ,
11
+ " @cDefine(\" ${1}\" )" ,
12
+ " });"
13
+ ],
14
+ "description" : " Importing C Header Files"
15
+ },
16
+ "buildExe" : {
17
+ "prefix" : " bExe" ,
18
+ "body" : [
19
+ " const exe = b.addExecutable(.{" ,
20
+ " .name = \" ${1}" ,\",
21
+ " .root_source_file = b.path(\" ${2: path}\" )," ,
22
+ " .target = target," ,
23
+ " .optimize = optimize," ,
24
+ " });" ,
25
+ " \n\n\n b.installArtifact(exe);" ,
26
+ ],
27
+ "description" : " Building an exe"
28
+ }
29
+ }
You can’t perform that action at this time.
0 commit comments