snibbets 2.0.19 → 2.0.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md.orig +9 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/Rakefile +2 -4
- data/lib/snibbets/string.rb +1 -1
- data/lib/snibbets/version.rb +1 -1
- data/lib/themes/atom-one-dark.theme +370 -0
- data/lib/themes/atom-one-light.theme +377 -0
- data/lib/themes/ayu-dark.theme +205 -0
- data/lib/themes/ayu-light.theme +180 -0
- data/lib/themes/ayu-mirage.theme +205 -0
- data/lib/themes/breeze-dark.theme +179 -0
- data/lib/themes/breeze-light.theme +179 -0
- data/lib/themes/catppuccin-frappe.theme +1137 -0
- data/lib/themes/catppuccin-latte.theme +1137 -0
- data/lib/themes/catppuccin-macchiato.theme +1137 -0
- data/lib/themes/catppuccin-mocha.theme +1137 -0
- data/lib/themes/dracula.theme +705 -0
- data/lib/themes/falcon.theme +184 -0
- data/lib/themes/github-dark.theme +216 -0
- data/lib/themes/github-light.theme +216 -0
- data/lib/themes/gruvbox-dark.theme +185 -0
- data/lib/themes/gruvbox-light.theme +185 -0
- data/lib/themes/homunculus.theme +177 -0
- data/lib/themes/monokai.theme +394 -0
- data/lib/themes/nord.theme +181 -0
- data/lib/themes/oblivion.theme +179 -0
- data/lib/themes/printing.theme +178 -0
- data/lib/themes/radical.theme +182 -0
- data/lib/themes/solarized-dark.theme +192 -0
- data/lib/themes/solarized-light.theme +196 -0
- data/lib/themes/vim-dark.theme +180 -0
- data/snibbets.gemspec +1 -1
- metadata +27 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 838cf57396d811526575b70437246d11a928ee7f101a6886244c2b72bac971cb
|
4
|
+
data.tar.gz: 916f26eea719fdb76e66c48607a6706dc945445cb6f4cb98e78d70f653f66109
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d33041bfc65262b2efa01db238d9c38d1106504c9a554e41d4eeb88a01f7b8b949b5d42211c8c73330d6e7485a303622154f496fdff5be659087708fa79f148
|
7
|
+
data.tar.gz: be09a90e72902d1c728386d0e4caadde049fd5a359a533b9c62284d30eaaeecdda6908b581df8c7fdf5487cd2db6175e2bb3dadbad0a23b242d4128f3aa5fba3
|
data/CHANGELOG.md.orig
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -155,7 +155,7 @@ Snibbet's implementation of Skylighting has limited but better-looking themes, a
|
|
155
155
|
### Usage
|
156
156
|
|
157
157
|
```
|
158
|
-
Snibbets v2.0.
|
158
|
+
Snibbets v2.0.20
|
159
159
|
|
160
160
|
Usage: snibbets [options] query
|
161
161
|
-a, --all If a file contains multiple snippets, output all of them (no menu)
|
data/Rakefile
CHANGED
data/lib/snibbets/string.rb
CHANGED
@@ -117,7 +117,7 @@ module Snibbets
|
|
117
117
|
end
|
118
118
|
end
|
119
119
|
|
120
|
-
sans_blocks = sans_blocks.gsub(/(?mi)^(`{3,})( *\
|
120
|
+
sans_blocks = sans_blocks.gsub(/(?mi)^(`{3,})( *\S+)? *\n([\s\S]*?)\n\1 *(\n|\Z)/) do
|
121
121
|
counter += 1
|
122
122
|
lang = Regexp.last_match(2)
|
123
123
|
lang = "<lang:#{lang.strip}>\n" if lang
|
data/lib/snibbets/version.rb
CHANGED
@@ -0,0 +1,370 @@
|
|
1
|
+
{
|
2
|
+
"custom-styles": {
|
3
|
+
"Diff": {
|
4
|
+
"Added line": {
|
5
|
+
"selected-text-color": "#98c379",
|
6
|
+
"text-color": "#98c379"
|
7
|
+
},
|
8
|
+
"Changed line (new)": {
|
9
|
+
"selected-text-color": "#98c379",
|
10
|
+
"text-color": "#98c379"
|
11
|
+
},
|
12
|
+
"Changed line (old)": {
|
13
|
+
"selected-text-color": "#e06c75",
|
14
|
+
"text-color": "#e06c75"
|
15
|
+
},
|
16
|
+
"Removed line": {
|
17
|
+
"selected-text-color": "#e06c75",
|
18
|
+
"text-color": "#e06c75"
|
19
|
+
}
|
20
|
+
},
|
21
|
+
"Go": {
|
22
|
+
"Predeclared Identifier": {
|
23
|
+
"selected-text-color": "#d19a66",
|
24
|
+
"text-color": "#d19a66"
|
25
|
+
}
|
26
|
+
},
|
27
|
+
"INI Files": {
|
28
|
+
"Assignment": {
|
29
|
+
"selected-text-color": "#abb2bf",
|
30
|
+
"text-color": "#abb2bf"
|
31
|
+
},
|
32
|
+
"Section": {
|
33
|
+
"selected-text-color": "#56b6c2",
|
34
|
+
"text-color": "#56b6c2"
|
35
|
+
}
|
36
|
+
},
|
37
|
+
"JavaScript": {
|
38
|
+
"Built-in Objects": {
|
39
|
+
"selected-text-color": "#d19a66",
|
40
|
+
"text-color": "#d19a66"
|
41
|
+
},
|
42
|
+
"Function Declaration": {
|
43
|
+
"selected-text-color": "#56b6c2",
|
44
|
+
"text-color": "#56b6c2"
|
45
|
+
},
|
46
|
+
"Function Name": {
|
47
|
+
"selected-text-color": "#56b6c2",
|
48
|
+
"text-color": "#56b6c2"
|
49
|
+
},
|
50
|
+
"Module": {
|
51
|
+
"selected-text-color": "#c678dd",
|
52
|
+
"text-color": "#c678dd"
|
53
|
+
},
|
54
|
+
"Object Member": {
|
55
|
+
"selected-text-color": "#e06c75",
|
56
|
+
"text-color": "#e06c75"
|
57
|
+
},
|
58
|
+
"Object Method (Built-in)": {
|
59
|
+
"selected-text-color": "#56b6c2",
|
60
|
+
"text-color": "#56b6c2"
|
61
|
+
}
|
62
|
+
},
|
63
|
+
"Markdown": {
|
64
|
+
"Code": {
|
65
|
+
"selected-text-color": "#d19a66",
|
66
|
+
"text-color": "#d19a66"
|
67
|
+
},
|
68
|
+
"Emphasis Text": {
|
69
|
+
"selected-text-color": "#c678dd",
|
70
|
+
"text-color": "#c678dd"
|
71
|
+
},
|
72
|
+
"Fenced Code": {
|
73
|
+
"selected-text-color": "#d19a66",
|
74
|
+
"text-color": "#d19a66"
|
75
|
+
},
|
76
|
+
"Header H1": {
|
77
|
+
"selected-text-color": "#e06c75",
|
78
|
+
"text-color": "#e06c75"
|
79
|
+
},
|
80
|
+
"Header H2": {
|
81
|
+
"selected-text-color": "#e06c75",
|
82
|
+
"text-color": "#e06c75"
|
83
|
+
},
|
84
|
+
"Header H3": {
|
85
|
+
"selected-text-color": "#e06c75",
|
86
|
+
"text-color": "#e06c75"
|
87
|
+
},
|
88
|
+
"Header H4": {
|
89
|
+
"selected-text-color": "#e06c75",
|
90
|
+
"text-color": "#e06c75"
|
91
|
+
},
|
92
|
+
"Header H5": {
|
93
|
+
"selected-text-color": "#e06c75",
|
94
|
+
"text-color": "#e06c75"
|
95
|
+
},
|
96
|
+
"Header H6": {
|
97
|
+
"selected-text-color": "#e06c75",
|
98
|
+
"text-color": "#e06c75"
|
99
|
+
},
|
100
|
+
"Link": {
|
101
|
+
"selected-text-color": "#c678dd",
|
102
|
+
"text-color": "#c678dd"
|
103
|
+
},
|
104
|
+
"Reference-Link Name": {
|
105
|
+
"selected-text-color": "#56b6c2",
|
106
|
+
"text-color": "#56b6c2"
|
107
|
+
},
|
108
|
+
"Reference-Link Target": {
|
109
|
+
"selected-text-color": "#56b6c2",
|
110
|
+
"text-color": "#56b6c2"
|
111
|
+
},
|
112
|
+
"Reference-Link Target: Link": {
|
113
|
+
"selected-text-color": "#c678dd",
|
114
|
+
"text-color": "#c678dd"
|
115
|
+
},
|
116
|
+
"Reference-Link: Email": {
|
117
|
+
"selected-text-color": "#c678dd",
|
118
|
+
"text-color": "#c678dd"
|
119
|
+
},
|
120
|
+
"Reference-Link: Link": {
|
121
|
+
"selected-text-color": "#c678dd",
|
122
|
+
"text-color": "#c678dd"
|
123
|
+
},
|
124
|
+
"Strong Text": {
|
125
|
+
"selected-text-color": "#d19a66",
|
126
|
+
"text-color": "#d19a66"
|
127
|
+
}
|
128
|
+
},
|
129
|
+
"Python": {
|
130
|
+
"Builtin Function": {
|
131
|
+
"selected-text-color": "#56b6c2",
|
132
|
+
"text-color": "#56b6c2"
|
133
|
+
},
|
134
|
+
"String Substitution": {
|
135
|
+
"selected-text-color": "#d19a66",
|
136
|
+
"text-color": "#d19a66"
|
137
|
+
}
|
138
|
+
},
|
139
|
+
"Rust": {
|
140
|
+
"Lifetime": {
|
141
|
+
"selected-text-color": "#d19a66",
|
142
|
+
"text-color": "#d19a66"
|
143
|
+
},
|
144
|
+
"Macro": {
|
145
|
+
"selected-text-color": "#56b6c2",
|
146
|
+
"text-color": "#56b6c2"
|
147
|
+
},
|
148
|
+
"Self": {
|
149
|
+
"selected-text-color": "#e06c75",
|
150
|
+
"text-color": "#e06c75"
|
151
|
+
},
|
152
|
+
"Trait": {
|
153
|
+
"selected-text-color": "#d19a66",
|
154
|
+
"text-color": "#d19a66"
|
155
|
+
},
|
156
|
+
"Type": {
|
157
|
+
"selected-text-color": "#56b6c2",
|
158
|
+
"text-color": "#56b6c2"
|
159
|
+
}
|
160
|
+
},
|
161
|
+
"TypeScript": {
|
162
|
+
"Built-in Objects": {
|
163
|
+
"selected-text-color": "#d19a66",
|
164
|
+
"text-color": "#d19a66"
|
165
|
+
},
|
166
|
+
"Module": {
|
167
|
+
"selected-text-color": "#c678dd",
|
168
|
+
"text-color": "#c678dd"
|
169
|
+
},
|
170
|
+
"Object Member": {
|
171
|
+
"selected-text-color": "#e06c75",
|
172
|
+
"text-color": "#e06c75"
|
173
|
+
},
|
174
|
+
"Object Method (Built-in)": {
|
175
|
+
"italic": false,
|
176
|
+
"selected-text-color": "#56b6c2",
|
177
|
+
"text-color": "#56b6c2"
|
178
|
+
},
|
179
|
+
"Reserved": {
|
180
|
+
"italic": false
|
181
|
+
},
|
182
|
+
"Types": {
|
183
|
+
"selected-text-color": "#56b6c2",
|
184
|
+
"text-color": "#56b6c2"
|
185
|
+
}
|
186
|
+
},
|
187
|
+
"XML": {
|
188
|
+
"Attribute": {
|
189
|
+
"selected-text-color": "#d19a66",
|
190
|
+
"text-color": "#d19a66"
|
191
|
+
},
|
192
|
+
"Element": {
|
193
|
+
"selected-text-color": "#e06c75",
|
194
|
+
"text-color": "#e06c75"
|
195
|
+
}
|
196
|
+
}
|
197
|
+
},
|
198
|
+
"editor-colors": {
|
199
|
+
"BackgroundColor": "#282c34",
|
200
|
+
"BracketMatching": "#8e44ad",
|
201
|
+
"CodeFolding": "#363c4a",
|
202
|
+
"CurrentLine": "#0A99BBFF",
|
203
|
+
"CurrentLineNumber": "#abb2bf",
|
204
|
+
"IconBorder": "#282c34",
|
205
|
+
"IndentationLine": "#3a3f44",
|
206
|
+
"LineNumbers": "#636D83",
|
207
|
+
"MarkBookmark": "#0404bf",
|
208
|
+
"MarkBreakpointActive": "#8b0607",
|
209
|
+
"MarkBreakpointDisabled": "#820683",
|
210
|
+
"MarkBreakpointReached": "#6d6e07",
|
211
|
+
"MarkError": "#c24038",
|
212
|
+
"MarkExecution": "#4d4e50",
|
213
|
+
"MarkWarning": "#d19a66",
|
214
|
+
"ModifiedLines": "#e06c75",
|
215
|
+
"ReplaceHighlight": "#a34f56",
|
216
|
+
"SavedLines": "#98c379",
|
217
|
+
"SearchHighlight": "#3D528BFF",
|
218
|
+
"Separator": "#3f4347",
|
219
|
+
"SpellChecking": "#c24038",
|
220
|
+
"TabMarker": "#21252B",
|
221
|
+
"TemplateBackground": "#31363b",
|
222
|
+
"TemplateFocusedPlaceholder": "#123723",
|
223
|
+
"TemplatePlaceholder": "#123723",
|
224
|
+
"TemplateReadOnlyPlaceholder": "#4d1f24",
|
225
|
+
"TextSelection": "#363c4a",
|
226
|
+
"WordWrapMarker": "#3a3f44"
|
227
|
+
},
|
228
|
+
"metadata": {
|
229
|
+
"copyright": [
|
230
|
+
"SPDX-FileCopyrightText: 2016 GitHub Inc.",
|
231
|
+
"SPDX-FileCopyrightText: 2020 Waqar Ahmed <waqar.17a@gmail.com>"
|
232
|
+
],
|
233
|
+
"license": "SPDX-License-Identifier: MIT",
|
234
|
+
"name": "Atom One Dark",
|
235
|
+
"revision": 3
|
236
|
+
},
|
237
|
+
"text-styles": {
|
238
|
+
"Alert": {
|
239
|
+
"background-color": "#4d1f24",
|
240
|
+
"bold": true,
|
241
|
+
"selected-text-color": "#95da4c",
|
242
|
+
"text-color": "#95da4c"
|
243
|
+
},
|
244
|
+
"Annotation": {
|
245
|
+
"selected-text-color": "#98c379",
|
246
|
+
"text-color": "#98c379"
|
247
|
+
},
|
248
|
+
"Attribute": {
|
249
|
+
"selected-text-color": "#c678dd",
|
250
|
+
"text-color": "#c678dd"
|
251
|
+
},
|
252
|
+
"BaseN": {
|
253
|
+
"selected-text-color": "#d19a66",
|
254
|
+
"text-color": "#d19a66"
|
255
|
+
},
|
256
|
+
"BuiltIn": {
|
257
|
+
"selected-text-color": "#c678dd",
|
258
|
+
"text-color": "#c678dd"
|
259
|
+
},
|
260
|
+
"Char": {
|
261
|
+
"selected-text-color": "#98c379",
|
262
|
+
"text-color": "#98c379"
|
263
|
+
},
|
264
|
+
"Comment": {
|
265
|
+
"italic": true,
|
266
|
+
"selected-text-color": "#5c6370",
|
267
|
+
"text-color": "#5c6370"
|
268
|
+
},
|
269
|
+
"CommentVar": {
|
270
|
+
"italic": true,
|
271
|
+
"selected-text-color": "#e06c75",
|
272
|
+
"text-color": "#e06c75"
|
273
|
+
},
|
274
|
+
"Constant": {
|
275
|
+
"selected-text-color": "#d19a66",
|
276
|
+
"text-color": "#d19a66"
|
277
|
+
},
|
278
|
+
"ControlFlow": {
|
279
|
+
"selected-text-color": "#c678dd",
|
280
|
+
"text-color": "#c678dd"
|
281
|
+
},
|
282
|
+
"DataType": {
|
283
|
+
"selected-text-color": "#c678dd",
|
284
|
+
"text-color": "#c678dd"
|
285
|
+
},
|
286
|
+
"DecVal": {
|
287
|
+
"selected-text-color": "#d19a66",
|
288
|
+
"text-color": "#d19a66"
|
289
|
+
},
|
290
|
+
"Documentation": {
|
291
|
+
"selected-text-color": "#da4453",
|
292
|
+
"text-color": "#a43340"
|
293
|
+
},
|
294
|
+
"Error": {
|
295
|
+
"selected-text-color": "#f44747",
|
296
|
+
"text-color": "#f44747",
|
297
|
+
"underline": true
|
298
|
+
},
|
299
|
+
"Extension": {
|
300
|
+
"bold": true,
|
301
|
+
"selected-text-color": "#61afef",
|
302
|
+
"text-color": "#61afef"
|
303
|
+
},
|
304
|
+
"Float": {
|
305
|
+
"selected-text-color": "#d19a66",
|
306
|
+
"text-color": "#d19a66"
|
307
|
+
},
|
308
|
+
"Function": {
|
309
|
+
"selected-text-color": "#61afef",
|
310
|
+
"text-color": "#61afef"
|
311
|
+
},
|
312
|
+
"Import": {
|
313
|
+
"selected-text-color": "#98c379",
|
314
|
+
"text-color": "#98c379"
|
315
|
+
},
|
316
|
+
"Information": {
|
317
|
+
"selected-text-color": "#e46700",
|
318
|
+
"text-color": "#c45b00"
|
319
|
+
},
|
320
|
+
"Keyword": {
|
321
|
+
"selected-text-color": "#c678dd",
|
322
|
+
"text-color": "#c678dd"
|
323
|
+
},
|
324
|
+
"Normal": {
|
325
|
+
"selected-text-color": "#abb2bf",
|
326
|
+
"text-color": "#abb2bf"
|
327
|
+
},
|
328
|
+
"Operator": {
|
329
|
+
"selected-text-color": "#c678dd",
|
330
|
+
"text-color": "#c678dd"
|
331
|
+
},
|
332
|
+
"Others": {
|
333
|
+
"selected-text-color": "#27ae60",
|
334
|
+
"text-color": "#27ae60"
|
335
|
+
},
|
336
|
+
"Preprocessor": {
|
337
|
+
"selected-text-color": "#c678dd",
|
338
|
+
"text-color": "#c678dd"
|
339
|
+
},
|
340
|
+
"RegionMarker": {
|
341
|
+
"background-color": "#153042",
|
342
|
+
"selected-text-color": "#3daee9",
|
343
|
+
"text-color": "#2980b9"
|
344
|
+
},
|
345
|
+
"SpecialChar": {
|
346
|
+
"selected-text-color": "#56b6c2",
|
347
|
+
"text-color": "#56b6c2"
|
348
|
+
},
|
349
|
+
"SpecialString": {
|
350
|
+
"selected-text-color": "#da4453",
|
351
|
+
"text-color": "#da4453"
|
352
|
+
},
|
353
|
+
"String": {
|
354
|
+
"selected-text-color": "#98c379",
|
355
|
+
"text-color": "#98c379"
|
356
|
+
},
|
357
|
+
"Variable": {
|
358
|
+
"selected-text-color": "#e06c75",
|
359
|
+
"text-color": "#e06c75"
|
360
|
+
},
|
361
|
+
"VerbatimString": {
|
362
|
+
"selected-text-color": "#da4453",
|
363
|
+
"text-color": "#da4453"
|
364
|
+
},
|
365
|
+
"Warning": {
|
366
|
+
"selected-text-color": "#da4453",
|
367
|
+
"text-color": "#da4453"
|
368
|
+
}
|
369
|
+
}
|
370
|
+
}
|