-
Notifications
You must be signed in to change notification settings - Fork 8
/
liquid.code-snippets
142 lines (142 loc) · 2.59 KB
/
liquid.code-snippets
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
{
"Liquid comment": {
"scope": "markdown,html,liquid",
"prefix": [
"comment"
],
"body": [
"{% comment %} $0 {% endcomment %}"
],
"description": "Inserts Liquid comment tags"
},
"Liquid if tags": {
"scope": "markdown,html,liquid",
"prefix": [
"if"
],
"body": [
"{% if $1 %}",
" $0",
"{% endif %}"
],
"description": "Inserts Liquid if tags"
},
"Liquid endif tag": {
"scope": "markdown,html,liquid",
"prefix": [
"endif"
],
"body": [
"{% endif %}$0"
],
"description": "Inserts a Liquid endif tag"
},
"Liquid unless tags": {
"scope": "markdown,html,liquid",
"prefix": [
"unless"
],
"body": [
"{% unless $1 %}",
" $0",
"{% endunless %}"
],
"description": "Inserts Liquid unless tags"
},
"Liquid endunless tag": {
"scope": "markdown,html,liquid",
"prefix": [
"endunless"
],
"body": [
"{% endunless %}$0"
],
"description": "Inserts a Liquid endunless tag"
},
"Liquid else tag": {
"scope": "markdown,html,liquid",
"prefix": [
"else"
],
"body": [
"{% else %}"
],
"description": "Inserts a Liquid else tag"
},
"Liquid for-loop tags": {
"scope": "markdown,html,liquid",
"prefix": [
"for"
],
"body": [
"{% for $1 in $2 %}",
" $0",
"{% endfor %}"
],
"description": "Inserts Liquid for-loop tags"
},
"Liquid capture tag": {
"scope": "markdown,html,liquid",
"prefix": [
"capture"
],
"body": [
"{% capture $1 %}$2{% endcapture %}",
"$0"
],
"description": "Inserts a Liquid capture tag"
},
"Liquid assign tag": {
"scope": "markdown,html,liquid",
"prefix": [
"assign"
],
"body": [
"{% assign $1 = $2 %}",
"$0"
],
"description": "Inserts a Liquid assign tag"
},
"Liquid include tag": {
"scope": "markdown,html,liquid",
"prefix": [
"include"
],
"body": [
"{% include ${1:figure} %}",
"$0"
],
"description": "Inserts a generic include tag"
},
"Add a figure include": {
"scope": "markdown,html,liquid",
"prefix": "fg",
"body": [
"{% include figure",
" ${1:images=\"$2\"}",
" ${3:html=\"$4\"}",
" ${5:markdown=\"$6\"}",
" ${7:reference=\"$8\"}",
" ${9:link=\"$10\"}",
" ${11:caption=\"$12\"}",
" ${13:title=\"$14\"}",
" ${15:description=\"$16\"}",
" ${17:source=\"$18\"}",
" ${19:class=\"$20\"}",
"%}",
"$0"
],
"description": "Inserts a figure include in a markdown file"
},
"Add definition include": {
"scope": "markdown,html,liquid",
"prefix": [
"dfn"
],
"body": [
"{% include definition term='$1' %}",
"$0"
],
"description": "Inserts a definition include tag"
}
}