44name : Sublime Text Color Scheme (JSON)
55file_extensions :
66 - sublime-color-scheme
7+ - hidden-color-scheme
78scope : source.json.sublime.color-scheme
89
910contexts :
@@ -201,20 +202,27 @@ contexts:
201202 - include : expect-key-rest
202203
203204 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 )(")
205206 scope : meta.mapping.key.json meta.globals-key.sublime-color-scheme string.quoted.double.json
206207 captures :
207208 1 : punctuation.definition.string.begin.json
208209 2 : entity.name.globals.sublime-color-scheme
209210 3 : punctuation.definition.string.end.json
210211 set : [expect-color-string-value, expect-colon]
211- - match : (")(shadow_width| popup_css|phantom_css)(")
212+ - match : (")(popup_css|phantom_css)(")
212213 scope : meta.mapping.key.json meta.globals-key.sublime-color-scheme string.quoted.double.json
213214 captures :
214215 1 : punctuation.definition.string.begin.json
215216 2 : entity.name.globals.sublime-color-scheme
216217 3 : punctuation.definition.string.end.json
217218 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]
218226 - match : (")(implicit_selection_foreground)(")
219227 scope : meta.mapping.key.json meta.globals-key.sublime-color-scheme string.quoted.double.json
220228 captures :
@@ -229,6 +237,13 @@ contexts:
229237 2 : entity.name.globals.sublime-color-scheme
230238 3 : punctuation.definition.string.end.json
231239 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]
232247 - include : in-dictionary-globals-key
233248 - include : expect-mapping-rest
234249
@@ -432,3 +447,42 @@ contexts:
432447 - include : string-escape
433448 - match : \b(true|false)\b
434449 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