-
Notifications
You must be signed in to change notification settings - Fork 0
/
snippets.json
84 lines (84 loc) · 1.29 KB
/
snippets.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
"doc_module": {
"prefix": "doc_module",
"body": [
"----",
"---@module",
"---@name $1",
"---@realm $2",
"----",
"---- $3",
"----"
]
},
"doc_func": {
"prefix": "doc_func",
"body": [
"----",
"---@name $1",
"----",
"---@arg $2(name: type) desc",
"---@return $3(name: type) desc",
"----",
"---- $4",
"----"
]
},
"doc_method": {
"prefix": "doc_method",
"body": [
"----",
"---@method",
"---@name $1",
"----",
"---@arg $2(name: type) desc",
"---@return $3(name: type) desc",
"----",
"---- $4",
"----"
]
},
"doc_panel": {
"prefix": "doc_panel",
"body": [
"----",
"---@panel $1",
"---@name $2",
"----",
"---@accessor $3(name: type)",
"----",
"---- $4",
"----",
"local PANEL = vgui.Register(\"$1\", {}, \"Panel\")",
"AccessorFunc(PANEL, \"\", \"\")",
"$2 = PANEL"
]
},
"doc_class": {
"prefix": "doc_class",
"body": [
"----",
"---@class $1",
"---@name $2",
"----",
"---@accessor $3(name: type)",
"----",
"local $1 = {}",
"$1.__index = $1",
"$2 = $1"
]
},
"doc_enum": {
"prefix": "doc_enum",
"body": [
"----",
"---@enumeration",
"---@name $1",
"----",
"---@enum ($2: $3) $4",
"----",
"$1_TEMP = 0",
"$2_TEMP2 =1 "
]
}
}