4
4
name : Sublime Text Color Scheme (JSON)
5
5
file_extensions :
6
6
- sublime-color-scheme
7
+ - hidden-color-scheme
7
8
scope : source.json.sublime.color-scheme
8
9
9
10
contexts :
@@ -201,20 +202,27 @@ contexts:
201
202
- include : expect-key-rest
202
203
203
204
globals-mapping-key :
204
- - match : (")(accent|shadow|invisibles|caret|line_highlight|foreground|background|selection|selection_border|inactive_selection|inactive_selection_foreground|highlight|find_highlight|find_highlight_foreground|stack_guide|active_guide|guide|misspelling|brackets_foreground|bracket_contents_foreground|tags_foreground|minimap_border|gutter|gutter_foreground|rulers)(")
205
+ - match : (")(accent|shadow|invisibles|caret|line_highlight|foreground|background|selection|selection_border|inactive_selection|inactive_selection_foreground|highlight|find_highlight|find_highlight_foreground|stack_guide|active_guide|guide|misspelling|brackets_foreground|bracket_contents_foreground|tags_foreground|minimap_border|gutter|gutter_foreground|rulers|fold_marker )(")
205
206
scope : meta.mapping.key.json meta.globals-key.sublime-color-scheme string.quoted.double.json
206
207
captures :
207
208
1 : punctuation.definition.string.begin.json
208
209
2 : entity.name.globals.sublime-color-scheme
209
210
3 : punctuation.definition.string.end.json
210
211
set : [expect-color-string-value, expect-colon]
211
- - match : (")(shadow_width| popup_css|phantom_css)(")
212
+ - match : (")(popup_css|phantom_css)(")
212
213
scope : meta.mapping.key.json meta.globals-key.sublime-color-scheme string.quoted.double.json
213
214
captures :
214
215
1 : punctuation.definition.string.begin.json
215
216
2 : entity.name.globals.sublime-color-scheme
216
217
3 : punctuation.definition.string.end.json
217
218
set : [expect-string-value, expect-colon]
219
+ - match : (")(shadow_width|selection_corner_radius|selection_border_width)(")
220
+ scope : meta.mapping.key.json meta.globals-key.sublime-color-scheme string.quoted.double.json
221
+ captures :
222
+ 1 : punctuation.definition.string.begin.json
223
+ 2 : entity.name.globals.sublime-color-scheme
224
+ 3 : punctuation.definition.string.end.json
225
+ set : [expect-possible-number-in-string-value, expect-colon]
218
226
- match : (")(implicit_selection_foreground)(")
219
227
scope : meta.mapping.key.json meta.globals-key.sublime-color-scheme string.quoted.double.json
220
228
captures :
@@ -229,6 +237,13 @@ contexts:
229
237
2 : entity.name.globals.sublime-color-scheme
230
238
3 : punctuation.definition.string.end.json
231
239
set : [expect-underlinestyle-string-value, expect-colon]
240
+ - match : (")(selection_corner_style)(")
241
+ scope : meta.mapping.key.json meta.globals-key.sublime-color-scheme string.quoted.double.json
242
+ captures :
243
+ 1 : punctuation.definition.string.begin.json
244
+ 2 : entity.name.globals.sublime-color-scheme
245
+ 3 : punctuation.definition.string.end.json
246
+ set : [expect-cornerstyle-string-value, expect-colon]
232
247
- include : in-dictionary-globals-key
233
248
- include : expect-mapping-rest
234
249
@@ -432,3 +447,42 @@ contexts:
432
447
- include : string-escape
433
448
- match : \b(true|false)\b
434
449
scope : support.constant.boolean-string.color-scheme
450
+
451
+ expect-cornerstyle-string-value :
452
+ - match : (?=")
453
+ set : [mapping-value-meta, cornerstyle-string-pop]
454
+ - include : expect-string-rest
455
+
456
+ cornerstyle-string-pop :
457
+ - match : \"
458
+ scope : punctuation.definition.string.begin.json
459
+ set :
460
+ - meta_scope : meta.corner-style.sublime-color-scheme string.quoted.double.json
461
+ - match : ' "'
462
+ scope : punctuation.definition.string.end.json
463
+ pop : true
464
+ - match : $\n?
465
+ scope : invalid.illegal.unclosed-string.json
466
+ pop : true
467
+ - include : string-escape
468
+ - match : \b(square|cut|round)\b
469
+ scope : support.constant.corner-style.color-scheme
470
+
471
+ expect-possible-number-in-string-value :
472
+ - match : (?=")
473
+ set : [mapping-value-meta, possible-number-in-string-pop]
474
+ - include : expect-string-rest
475
+
476
+ possible-number-in-string-pop :
477
+ - match : \"
478
+ scope : punctuation.definition.string.begin.json
479
+ set :
480
+ - meta_scope : string.quoted.double.json
481
+ - match : ' "'
482
+ scope : punctuation.definition.string.end.json
483
+ pop : true
484
+ - match : $\n?
485
+ scope : invalid.illegal.unclosed-string.json
486
+ pop : true
487
+ - include : string-escape
488
+ - include : Sublime JSON.sublime-syntax#number
0 commit comments