Skip to content

Commit 5b68ec1

Browse files
committed
Separate CSS matches from selection border matches
1 parent 90d8626 commit 5b68ec1

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Package/Sublime Text Color Scheme/Sublime Text Color Scheme.sublime-syntax

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,14 @@ contexts:
208208
2: entity.name.globals.sublime-color-scheme
209209
3: punctuation.definition.string.end.json
210210
set: [expect-color-string-value, expect-colon]
211-
- match: (")(shadow_width|popup_css|phantom_css|selection_corner_radius|selection_border_width)(")
211+
- match: (")(popup_css|phantom_css)(")
212+
scope: meta.mapping.key.json meta.globals-key.sublime-color-scheme string.quoted.double.json
213+
captures:
214+
1: punctuation.definition.string.begin.json
215+
2: entity.name.globals.sublime-color-scheme
216+
3: punctuation.definition.string.end.json
217+
set: [expect-string-value, expect-colon]
218+
- match: (")(shadow_width|selection_corner_radius|selection_border_width)(")
212219
scope: meta.mapping.key.json meta.globals-key.sublime-color-scheme string.quoted.double.json
213220
captures:
214221
1: punctuation.definition.string.begin.json

Package/Sublime Text Color Scheme/syntax_test_colorscheme.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@
8989
// ^^^ meta.mapping.value.json string.quoted.double.json
9090
// ^ constant.numeric.json
9191
"selection_border": "#ffffff40",
92+
// ^^^^^^^^^^^^^^^^ meta.globals-key string.quoted.double entity.name.globals
93+
// ^^^^^^^^^ constant.other.color.rgba-value
9294
"selection_corner_style": "round",
9395
// ^^^^^^^^^^^^^^^^^^^^^^ entity.name.globals.sublime-color-scheme
9496
// ^^^^^ support.constant.corner-style.color-scheme

0 commit comments

Comments
 (0)