on master help sign in
Improve Monokai Extended JSON key color with a patch
commit7768433d091c77efb6752b6407b25fb8e8a259b9 authorKeith Hall <kingkeith+github@gmail.com> dateSat 27 Feb 2021, 23:03 (6 years ago) parentc569774
2 files changed+34−16
assets/patches/Monokai-Extended.tmTheme.patch+18 tests/syntax-tests/highlighted/JSON/test.json+16−16
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 @@
11[
22 {
3− "name": "john",
4− "age": 42,
5− "isCustomer": false,
6− "children": []
3+ "name": "john",
4+ "age": 42,
5+ "isCustomer": false,
6+ "children": []
77 },
88 {
9− "name": "james",
10− "age": 35,
11− "isCustomer": true,
12− "children": [
9+ "name": "james",
10+ "age": 35,
11+ "isCustomer": true,
12+ "children": [
1313 {
14− "name": "linus",
15− "age": 4
14+ "name": "linus",
15+ "age": 4
1616 },
1717 {
18− "name": "sandra",
19− "age": 2
18+ "name": "sandra",
19+ "age": 2
2020 }
2121 ]
2222 },
2323 {
24− "name": "jessica",
25− "age": null,
26− "isCustomer": false,
27− "children": []
24+ "name": "jessica",
25+ "age": null,
26+ "isCustomer": false,
27+ "children": []
2828 }
2929]