File tree 1 file changed +14
-7
lines changed
1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change 2
2
"Rule" : {
3
3
"prefix" : " rule" ,
4
4
"body" : [
5
- " rule ${TM_FILENAME_BASE}" ,
5
+ " rule ${1:$ TM_FILENAME_BASE}" ,
6
6
" {" ,
7
7
" \t meta:" ,
8
+ " \t\t description = \" ${description}\" " ,
9
+ " \t\t author = \" ${author}\" " ,
8
10
" \t\t date = \" ${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}\" " ,
11
+ " \t\t reference = \" ${reference}\" " ,
12
+ " \t\t hash = \" ${hash}\" " ,
9
13
" \t strings:" ,
10
- " \t\t ${1:strings} " ,
14
+ " \t\t $${name} = \" ${string} \" " ,
11
15
" \t condition:" ,
12
- " \t\t ${2: condition}" ,
16
+ " \t\t ${condition}" ,
13
17
" }"
14
18
],
15
19
"description" : " Generate a rule skeleton"
18
22
"prefix" : " meta" ,
19
23
"body" : [
20
24
" meta:" ,
21
- " \t\t date = \" ${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}\" " ,
22
- " \t ${metadata}"
25
+ " \t description = \" ${description}\" " ,
26
+ " \t author = \" ${author}\" " ,
27
+ " \t date = \" ${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}\" " ,
28
+ " \t reference = \" ${reference}\" " ,
29
+ " \t hash = \" ${hash}\" "
23
30
],
24
31
"description" : " Generate a 'meta' section"
25
32
},
26
33
"Strings" : {
27
34
"prefix" : " strings" ,
28
35
"body" : [
29
36
" strings:" ,
30
- " \t ${strings} "
37
+ " \t $${name} = \" ${string} \" "
31
38
],
32
39
"description" : " Generate a 'strings' section"
33
40
},
59
66
"body" : " all of ${them}" ,
60
67
"description" : " String set keyword: all"
61
68
}
62
- }
69
+ }
You can’t perform that action at this time.
0 commit comments