sparx 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,431 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>fileTypes</key>
6
+ <array>
7
+ <string>sparx</string>
8
+ <string>spk</string>
9
+ </array>
10
+ <key>name</key>
11
+ <string>Sparx</string>
12
+ <key>patterns</key>
13
+ <array>
14
+ <dict>
15
+ <key>include</key>
16
+ <string>#comments</string>
17
+ </dict>
18
+ <dict>
19
+ <key>include</key>
20
+ <string>#headings</string>
21
+ </dict>
22
+ <dict>
23
+ <key>include</key>
24
+ <string>#containers</string>
25
+ </dict>
26
+ <dict>
27
+ <key>include</key>
28
+ <string>#lists</string>
29
+ </dict>
30
+ <dict>
31
+ <key>include</key>
32
+ <string>#responsive-images</string>
33
+ </dict>
34
+ <dict>
35
+ <key>include</key>
36
+ <string>#images</string>
37
+ </dict>
38
+ <dict>
39
+ <key>include</key>
40
+ <string>#links</string>
41
+ </dict>
42
+ <dict>
43
+ <key>include</key>
44
+ <string>#citations</string>
45
+ </dict>
46
+ <dict>
47
+ <key>include</key>
48
+ <string>#code</string>
49
+ </dict>
50
+ <dict>
51
+ <key>include</key>
52
+ <string>#tables</string>
53
+ </dict>
54
+ <dict>
55
+ <key>include</key>
56
+ <string>#inline-formatting</string>
57
+ </dict>
58
+ <dict>
59
+ <key>include</key>
60
+ <string>#misc-inline</string>
61
+ </dict>
62
+ </array>
63
+ <key>repository</key>
64
+ <dict>
65
+ <key>comments</key>
66
+ <dict>
67
+ <key>patterns</key>
68
+ <array>
69
+ <dict>
70
+ <key>match</key>
71
+ <string>^#\s.*$</string>
72
+ <key>name</key>
73
+ <string>comment.line.sparx</string>
74
+ </dict>
75
+ </array>
76
+ </dict>
77
+ <key>headings</key>
78
+ <dict>
79
+ <key>patterns</key>
80
+ <array>
81
+ <dict>
82
+ <key>captures</key>
83
+ <dict>
84
+ <key>1</key>
85
+ <dict>
86
+ <key>name</key>
87
+ <string>entity.name.section.sparx</string>
88
+ <key>patterns</key>
89
+ <array>
90
+ <dict>
91
+ <key>include</key>
92
+ <string>#inline-formatting</string>
93
+ </dict>
94
+ </array>
95
+ </dict>
96
+ </dict>
97
+ <key>match</key>
98
+ <string>^#\s+(.+)$</string>
99
+ <key>name</key>
100
+ <string>markup.heading.1.sparx</string>
101
+ </dict>
102
+ <dict>
103
+ <key>captures</key>
104
+ <dict>
105
+ <key>1</key>
106
+ <dict>
107
+ <key>name</key>
108
+ <string>entity.name.section.sparx</string>
109
+ <key>patterns</key>
110
+ <array>
111
+ <dict>
112
+ <key>include</key>
113
+ <string>#inline-formatting</string>
114
+ </dict>
115
+ </array>
116
+ </dict>
117
+ </dict>
118
+ <key>match</key>
119
+ <string>^##\s+(.+)$</string>
120
+ <key>name</key>
121
+ <string>markup.heading.2.sparx</string>
122
+ </dict>
123
+ <dict>
124
+ <key>captures</key>
125
+ <dict>
126
+ <key>1</key>
127
+ <dict>
128
+ <key>name</key>
129
+ <string>entity.name.section.sparx</string>
130
+ <key>patterns</key>
131
+ <array>
132
+ <dict>
133
+ <key>include</key>
134
+ <string>#inline-formatting</string>
135
+ </dict>
136
+ </array>
137
+ </dict>
138
+ </dict>
139
+ <key>match</key>
140
+ <string>^###\s+(.+)$</string>
141
+ <key>name</key>
142
+ <string>markup.heading.3.sparx</string>
143
+ </dict>
144
+ <dict>
145
+ <key>captures</key>
146
+ <dict>
147
+ <key>1</key>
148
+ <dict>
149
+ <key>name</key>
150
+ <string>entity.name.section.sparx</string>
151
+ <key>patterns</key>
152
+ <array>
153
+ <dict>
154
+ <key>include</key>
155
+ <string>#inline-formatting</string>
156
+ </dict>
157
+ </array>
158
+ </dict>
159
+ </dict>
160
+ <key>match</key>
161
+ <string>^####\s+(.+)$</string>
162
+ <key>name</key>
163
+ <string>markup.heading.4.sparx</string>
164
+ </dict>
165
+ <dict>
166
+ <key>captures</key>
167
+ <dict>
168
+ <key>1</key>
169
+ <dict>
170
+ <key>name</key>
171
+ <string>entity.name.section.sparx</string>
172
+ <key>patterns</key>
173
+ <array>
174
+ <dict>
175
+ <key>include</key>
176
+ <string>#inline-formatting</string>
177
+ </dict>
178
+ </array>
179
+ </dict>
180
+ </dict>
181
+ <key>match</key>
182
+ <string>^#####\s+(.+)$</string>
183
+ <key>name</key>
184
+ <string>markup.heading.5.sparx</string>
185
+ </dict>
186
+ <dict>
187
+ <key>captures</key>
188
+ <dict>
189
+ <key>1</key>
190
+ <dict>
191
+ <key>name</key>
192
+ <string>entity.name.section.sparx</string>
193
+ <key>patterns</key>
194
+ <array>
195
+ <dict>
196
+ <key>include</key>
197
+ <string>#inline-formatting</string>
198
+ </dict>
199
+ </array>
200
+ </dict>
201
+ </dict>
202
+ <key>match</key>
203
+ <string>^######\s+(.+)$</string>
204
+ <key>name</key>
205
+ <string>markup.heading.6.sparx</string>
206
+ </dict>
207
+ </array>
208
+ </dict>
209
+ <key>containers</key>
210
+ <dict>
211
+ <key>patterns</key>
212
+ <array>
213
+ <dict>
214
+ <key>begin</key>
215
+ <string>^(\$)\[([a-zA-Z][a-zA-Z0-9_-]*)\]\{</string>
216
+ <key>beginCaptures</key>
217
+ <dict>
218
+ <key>1</key>
219
+ <dict>
220
+ <key>name</key>
221
+ <string>punctuation.definition.container.begin.sparx</string>
222
+ </dict>
223
+ <key>2</key>
224
+ <dict>
225
+ <key>name</key>
226
+ <string>entity.name.section.sparx</string>
227
+ </dict>
228
+ </dict>
229
+ <key>end</key>
230
+ <string>^\}</string>
231
+ <key>endCaptures</key>
232
+ <dict>
233
+ <key>0</key>
234
+ <dict>
235
+ <key>name</key>
236
+ <string>punctuation.definition.container.end.sparx</string>
237
+ </dict>
238
+ </dict>
239
+ <key>name</key>
240
+ <string>meta.container.section.sparx</string>
241
+ <key>patterns</key>
242
+ <array>
243
+ <dict>
244
+ <key>include</key>
245
+ <string>$self</string>
246
+ </dict>
247
+ </array>
248
+ </dict>
249
+ <dict>
250
+ <key>begin</key>
251
+ <string>^(>)(?:\[([^\]]+)\])?\{</string>
252
+ <key>beginCaptures</key>
253
+ <dict>
254
+ <key>1</key>
255
+ <dict>
256
+ <key>name</key>
257
+ <string>punctuation.definition.container.begin.sparx</string>
258
+ </dict>
259
+ <key>2</key>
260
+ <dict>
261
+ <key>name</key>
262
+ <string>string.other.link.sparx</string>
263
+ </dict>
264
+ </dict>
265
+ <key>end</key>
266
+ <string>^\}</string>
267
+ <key>endCaptures</key>
268
+ <dict>
269
+ <key>0</key>
270
+ <dict>
271
+ <key>name</key>
272
+ <string>punctuation.definition.container.end.sparx</string>
273
+ </dict>
274
+ </dict>
275
+ <key>name</key>
276
+ <string>meta.container.blockquote.sparx</string>
277
+ <key>patterns</key>
278
+ <array>
279
+ <dict>
280
+ <key>include</key>
281
+ <string>$self</string>
282
+ </dict>
283
+ </array>
284
+ </dict>
285
+ <dict>
286
+ <key>begin</key>
287
+ <string>^(\.)([a-zA-Z0-9_-]+)\{</string>
288
+ <key>beginCaptures</key>
289
+ <dict>
290
+ <key>1</key>
291
+ <dict>
292
+ <key>name</key>
293
+ <string>punctuation.definition.container.begin.sparx</string>
294
+ </dict>
295
+ <key>2</key>
296
+ <dict>
297
+ <key>name</key>
298
+ <string>entity.name.class.sparx</string>
299
+ </dict>
300
+ </dict>
301
+ <key>end</key>
302
+ <string>^\}</string>
303
+ <key>endCaptures</key>
304
+ <dict>
305
+ <key>0</key>
306
+ <dict>
307
+ <key>name</key>
308
+ <string>punctuation.definition.container.end.sparx</string>
309
+ </dict>
310
+ </dict>
311
+ <key>name</key>
312
+ <string>meta.container.div.sparx</string>
313
+ <key>patterns</key>
314
+ <array>
315
+ <dict>
316
+ <key>include</key>
317
+ <string>$self</string>
318
+ </dict>
319
+ </array>
320
+ </dict>
321
+ <dict>
322
+ <key>begin</key>
323
+ <string>^(~)\{</string>
324
+ <key>beginCaptures</key>
325
+ <dict>
326
+ <key>1</key>
327
+ <dict>
328
+ <key>name</key>
329
+ <string>punctuation.definition.container.begin.sparx</string>
330
+ </dict>
331
+ </dict>
332
+ <key>end</key>
333
+ <string>^\}</string>
334
+ <key>endCaptures</key>
335
+ <dict>
336
+ <key>0</key>
337
+ <dict>
338
+ <key>name</key>
339
+ <string>punctuation.definition.container.end.sparx</string>
340
+ </dict>
341
+ </dict>
342
+ <key>name</key>
343
+ <string>meta.container.aside.sparx</string>
344
+ <key>patterns</key>
345
+ <array>
346
+ <dict>
347
+ <key>include</key>
348
+ <string>$self</string>
349
+ </dict>
350
+ </array>
351
+ </dict>
352
+ <dict>
353
+ <key>begin</key>
354
+ <string>^(f)\[([^\]]+)\]\{</string>
355
+ <key>beginCaptures</key>
356
+ <dict>
357
+ <key>1</key>
358
+ <dict>
359
+ <key>name</key>
360
+ <string>punctuation.definition.container.begin.sparx</string>
361
+ </dict>
362
+ <key>2</key>
363
+ <dict>
364
+ <key>name</key>
365
+ <string>string.quoted.sparx</string>
366
+ </dict>
367
+ </dict>
368
+ <key>end</key>
369
+ <string>^\}</string>
370
+ <key>endCaptures</key>
371
+ <dict>
372
+ <key>0</key>
373
+ <dict>
374
+ <key>name</key>
375
+ <string>punctuation.definition.container.end.sparx</string>
376
+ </dict>
377
+ </dict>
378
+ <key>name</key>
379
+ <string>meta.container.figure.sparx</string>
380
+ <key>patterns</key>
381
+ <array>
382
+ <dict>
383
+ <key>include</key>
384
+ <string>$self</string>
385
+ </dict>
386
+ </array>
387
+ </dict>
388
+ <dict>
389
+ <key>begin</key>
390
+ <string>^(\+)\[([^\]]+)\]\{</string>
391
+ <key>beginCaptures</key>
392
+ <dict>
393
+ <key>1</key>
394
+ <dict>
395
+ <key>name</key>
396
+ <string>punctuation.definition.container.begin.sparx</string>
397
+ </dict>
398
+ <key>2</key>
399
+ <dict>
400
+ <key>name</key>
401
+ <string>string.quoted.sparx</string>
402
+ </dict>
403
+ </dict>
404
+ <key>end</key>
405
+ <string>^\}</string>
406
+ <key>endCaptures</key>
407
+ <dict>
408
+ <key>0</key>
409
+ <dict>
410
+ <key>name</key>
411
+ <string>punctuation.definition.container.end.sparx</string>
412
+ </dict>
413
+ </dict>
414
+ <key>name</key>
415
+ <string>meta.container.details.sparx</string>
416
+ <key>patterns</key>
417
+ <array>
418
+ <dict>
419
+ <key>include</key>
420
+ <string>$self</string>
421
+ </dict>
422
+ </array>
423
+ </dict>
424
+ </array>
425
+ </dict>
426
+ <!-- I'll continue with the rest if this works! -->
427
+ </dict>
428
+ <key>scopeName</key>
429
+ <string>source.sparx</string>
430
+ </dict>
431
+ </plist>
@@ -0,0 +1,135 @@
1
+ {
2
+ "name": "Sparx",
3
+ "scopeName": "source.sparx",
4
+ "fileTypes": ["sparx", "spk"],
5
+ "patterns": [
6
+ {"include": "#comments"},
7
+ {"include": "#headings"},
8
+ {"include": "#containers"},
9
+ {"include": "#lists"},
10
+ {"include": "#images"},
11
+ {"include": "#links"},
12
+ {"include": "#code"},
13
+ {"include": "#inline-formatting"}
14
+ ],
15
+ "repository": {
16
+ "comments": {
17
+ "patterns": [
18
+ {
19
+ "match": "^#\\s.*$",
20
+ "name": "comment.line.sparx"
21
+ }
22
+ ]
23
+ },
24
+ "headings": {
25
+ "patterns": [
26
+ {
27
+ "match": "^\\s*# (.+)$",
28
+ "name": "markup.heading.1.sparx"
29
+ },
30
+ {
31
+ "match": "^\\s*## (.+)$",
32
+ "name": "markup.heading.2.sparx"
33
+ },
34
+ {
35
+ "match": "^\\s*### (.+)$",
36
+ "name": "markup.heading.3.sparx"
37
+ },
38
+ {
39
+ "match": "^\\s*#### (.+)$",
40
+ "name": "markup.heading.4.sparx"
41
+ },
42
+ {
43
+ "match": "^\\s*##### (.+)$",
44
+ "name": "markup.heading.5.sparx"
45
+ },
46
+ {
47
+ "match": "^\\s*###### (.+)$",
48
+ "name": "markup.heading.6.sparx"
49
+ }
50
+ ]
51
+ },
52
+ "containers": {
53
+ "patterns": [
54
+ {
55
+ "begin": "^\\s*\\$\\[([a-zA-Z][a-zA-Z0-9_-]*)\\]\\{",
56
+ "end": "^\\s*\\}",
57
+ "name": "meta.container.section.sparx",
58
+ "patterns": [
59
+ {"include": "#containers"},
60
+ {"include": "$self"}
61
+ ]
62
+ },
63
+ {
64
+ "begin": "^\\s*\\.([a-zA-Z0-9_-]+)\\{",
65
+ "end": "^\\s*\\}",
66
+ "name": "meta.container.div.sparx",
67
+ "patterns": [
68
+ {"include": "#containers"},
69
+ {"include": "$self"}
70
+ ]
71
+ },
72
+ {
73
+ "begin": "^\\s*~\\{",
74
+ "end": "^\\s*\\}",
75
+ "name": "meta.container.aside.sparx",
76
+ "patterns": [
77
+ {"include": "#containers"},
78
+ {"include": "$self"}
79
+ ]
80
+ },
81
+ {
82
+ "begin": "^\\s*f\\[([^\\]]+)\\]\\{",
83
+ "end": "^\\s*\\}",
84
+ "name": "meta.container.figure.sparx",
85
+ "patterns": [
86
+ {"include": "#containers"},
87
+ {"include": "$self"}
88
+ ]
89
+ }
90
+ ]
91
+ },
92
+ "inline-formatting": {
93
+ "patterns": [
94
+ {
95
+ "match": "\\*\\[([^\\]]+)\\]",
96
+ "name": "markup.bold.sparx"
97
+ },
98
+ {
99
+ "match": "/\\[([^\\]]+)\\]",
100
+ "name": "markup.italic.sparx"
101
+ },
102
+ {
103
+ "match": "-\\[([^\\]]+)\\]",
104
+ "name": "markup.strikethrough.sparx"
105
+ }
106
+ ]
107
+ },
108
+ "images": {
109
+ "patterns": [
110
+ {
111
+ "match": "^\\s*src\\[([^\\]]+)\\](.+)$",
112
+ "name": "meta.image.responsive.sparx"
113
+ },
114
+ {
115
+ "match": "([*\\/-]*)i\\[([^\\]]+)\\](@[a-zA-Z0-9_-]+)?([^=\\s]+)(?:=(\\d+x\\d+))?",
116
+ "name": "meta.image.inline.sparx"
117
+ }
118
+ ]
119
+ },
120
+ "code": {
121
+ "patterns": [
122
+ {
123
+ "begin": "```(\\w+)?",
124
+ "end": "```",
125
+ "name": "markup.raw.code-fence.sparx",
126
+ "contentName": "meta.embedded.code.sparx"
127
+ },
128
+ {
129
+ "match": "`([^`]+)`",
130
+ "name": "markup.raw.inline-code.sparx"
131
+ }
132
+ ]
133
+ }
134
+ }
135
+ }
metadata ADDED
@@ -0,0 +1,106 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sparx
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.5
5
+ platform: ruby
6
+ authors:
7
+ - Steven Garcia
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: rake
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - "~>"
17
+ - !ruby/object:Gem::Version
18
+ version: '13.0'
19
+ type: :development
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - "~>"
24
+ - !ruby/object:Gem::Version
25
+ version: '13.0'
26
+ - !ruby/object:Gem::Dependency
27
+ name: minitest
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - "~>"
31
+ - !ruby/object:Gem::Version
32
+ version: '5.0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '5.0'
40
+ - !ruby/object:Gem::Dependency
41
+ name: listen
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '3.0'
47
+ type: :runtime
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '3.0'
54
+ description: Sparx is a powerful, semantic markup language that generates clean HTML
55
+ without the limitations of Markdown
56
+ email: stevendgarcia@gmail.com
57
+ executables:
58
+ - sparx
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - LICENSE
63
+ - README.md
64
+ - bin/sparx
65
+ - editors/sublime-text/README.md
66
+ - editors/sublime-text/package.json
67
+ - editors/textmate/README.md
68
+ - editors/vscode/README.md
69
+ - editors/vscode/language-configuration.json
70
+ - editors/vscode/package.json
71
+ - editors/vscode/snippets.json
72
+ - lib/sparx.rb
73
+ - lib/sparx/constants.rb
74
+ - lib/sparx/container_processor.rb
75
+ - lib/sparx/image_processor.rb
76
+ - lib/sparx/inline_processor.rb
77
+ - lib/sparx/parser.rb
78
+ - lib/sparx/version.rb
79
+ - syntaxes/sparx.sublime-syntax
80
+ - syntaxes/sparx.tmLanguage
81
+ - syntaxes/sparx.tmLanguage.json
82
+ homepage: https://github.com/activestylus/sparx
83
+ licenses:
84
+ - MIT
85
+ metadata:
86
+ homepage_uri: https://github.com/activestylus/sparx
87
+ source_code_uri: https://github.com/activestylus/sparx
88
+ changelog_uri: https://github.com/activestylus/sparx/blob/main/CHANGELOG.md
89
+ rdoc_options: []
90
+ require_paths:
91
+ - lib
92
+ required_ruby_version: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ required_rubygems_version: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ requirements: []
103
+ rubygems_version: 3.6.9
104
+ specification_version: 4
105
+ summary: A friendly markup language for the modern web
106
+ test_files: []