on master help sign in
Improve Monokai Extended JSON key color with a patch
7768433Keith Hall
assets/patches/Monokai-Extended.tmTheme.patchnew file+18
@@ -0,0 +1,18 @@
1+diff --git themes/sublime-monokai-extended/Monokai\ Extended.tmTheme themes/sublime-monokai-extended/Monokai\ Extended.tmTheme
2+index 9c2aa3e..180cbbf 100644
3+--- themes/sublime-monokai-extended/Monokai Extended.tmTheme
4++++ themes/sublime-monokai-extended/Monokai Extended.tmTheme
5+@@ -810,11 +810,11 @@
6+ <key>name</key>
7+ <string>JSON String</string>
8+ <key>scope</key>
9+- <string>meta.structure.dictionary.json string.quoted.double.json</string>
10++ <string>meta.mapping.key.json string.quoted.double.json</string>
11+ <key>settings</key>
12+ <dict>
13+ <key>foreground</key>
14+- <string>#cfcfc2</string>
15++ <string>#fd971f</string>
16+ </dict>
17+ </dict>
18+ <dict>
tests/syntax-tests/highlighted/JSON/test.json+16−16
@@ -1,29 +1,29 @@
1[
1[
2 {
2 {
3− "name": "john",
3+ "name": "john",
4− "age": 42,
4+ "age": 42,
5− "isCustomer": false,
5+ "isCustomer": false,
6− "children": []
6+ "children": []
7 },
7 },
8 {
8 {
9− "name": "james",
9+ "name": "james",
10− "age": 35,
10+ "age": 35,
11− "isCustomer": true,
11+ "isCustomer": true,
12− "children": [
12+ "children": [
13 {
13 {
14− "name": "linus",
14+ "name": "linus",
15− "age": 4
15+ "age": 4
16 },
16 },
17 {
17 {
18− "name": "sandra",
18+ "name": "sandra",
19− "age": 2
19+ "age": 2
20 }
20 }
21 ]
21 ]
22 },
22 },
23 {
23 {
24− "name": "jessica",
24+ "name": "jessica",
25− "age": null,
25+ "age": null,
26− "isCustomer": false,
26+ "isCustomer": false,
27− "children": []
27+ "children": []
28 }
28 }
29]
29]