Skip to content

Commit b436869

Browse files
all color themes: treat comment docstrings as comments too (microsoft#182162)
* monokai-color-theme.json: treat Python comment string blocks ...as comments too * Update *all* themes to consider Python block string comments as comments modified: extensions/theme-abyss/themes/abyss-color-theme.json modified: extensions/theme-defaults/themes/dark_vs.json modified: extensions/theme-defaults/themes/hc_black.json modified: extensions/theme-defaults/themes/hc_light.json modified: extensions/theme-defaults/themes/light_vs.json modified: extensions/theme-kimbie-dark/themes/kimbie-dark-color-theme.json modified: extensions/theme-monokai-dimmed/themes/dimmed-monokai-color-theme.json modified: extensions/theme-monokai/themes/monokai-color-theme.json modified: extensions/theme-quietlight/themes/quietlight-color-theme.json modified: extensions/theme-red/themes/Red-color-theme.json modified: extensions/theme-solarized-dark/themes/solarized-dark-color-theme.json modified: extensions/theme-solarized-light/themes/solarized-light-color-theme.json modified: extensions/theme-tomorrow-night-blue/themes/tomorrow-night-blue-color-theme.json * Update all changes to use "string.quoted.docstring" ...instead of "string.quoted.docstring.multi.python", per @aeschli's request here: microsoft#182162 (comment) This way the comment formatting applies to *all* language quoted docstrings, instead of just to Python. * bring back python colorize tests --------- Co-authored-by: Martin Aeschlimann <[email protected]>
1 parent 8c6f7df commit b436869

File tree

17 files changed

+2616
-1568
lines changed

17 files changed

+2616
-1568
lines changed

extensions/theme-abyss/themes/abyss-color-theme.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@
1717
}
1818
},
1919
{
20-
"name": "Comment",
21-
"scope": "comment",
20+
"name": "Comments",
21+
"scope": [
22+
"comment",
23+
"string.quoted.docstring"
24+
],
2225
"settings": {
2326
"foreground": "#384887"
2427
}

extensions/theme-defaults/themes/dark_vs.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@
5757
}
5858
},
5959
{
60-
"scope": "comment",
60+
"name": "Comments",
61+
"scope": [
62+
"comment",
63+
"string.quoted.docstring"
64+
],
6165
"settings": {
6266
"foreground": "#6A9955"
6367
}

extensions/theme-defaults/themes/hc_black.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@
4343
}
4444
},
4545
{
46-
"scope": "comment",
46+
"name": "Comments",
47+
"scope": [
48+
"comment",
49+
"string.quoted.docstring"
50+
],
4751
"settings": {
4852
"foreground": "#7ca668"
4953
}

extensions/theme-defaults/themes/hc_light.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@
2727
}
2828
},
2929
{
30-
"scope": "comment",
30+
"name": "Comments",
31+
"scope": [
32+
"comment",
33+
"string.quoted.docstring"
34+
],
3135
"settings": {
3236
"foreground": "#515151"
3337
}

extensions/theme-defaults/themes/light_vs.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@
6262
}
6363
},
6464
{
65-
"scope": "comment",
65+
"name": "Comments",
66+
"scope": [
67+
"comment",
68+
"string.quoted.docstring"
69+
],
6670
"settings": {
6771
"foreground": "#008000"
6872
}

extensions/theme-kimbie-dark/themes/kimbie-dark-color-theme.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@
8181
"name": "Comments",
8282
"scope": [
8383
"comment",
84-
"punctuation.definition.comment"
84+
"punctuation.definition.comment",
85+
"string.quoted.docstring"
8586
],
8687
"settings": {
8788
"foreground": "#a57a4c"

extensions/theme-monokai-dimmed/themes/dimmed-monokai-color-theme.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,11 @@
7878
}
7979
},
8080
{
81-
"name": "Comment",
82-
"scope": "comment",
81+
"name": "Comments",
82+
"scope": [
83+
"comment",
84+
"string.quoted.docstring"
85+
],
8386
"settings": {
8487
"fontStyle": "",
8588
"foreground": "#9A9B99"

extensions/theme-monokai/themes/monokai-color-theme.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,11 @@
118118
}
119119
},
120120
{
121-
"name": "Comment",
122-
"scope": "comment",
121+
"name": "Comments",
122+
"scope": [
123+
"comment",
124+
"string.quoted.docstring"
125+
],
123126
"settings": {
124127
"foreground": "#88846f"
125128
}

extensions/theme-quietlight/themes/quietlight-color-theme.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"name": "Comments",
2121
"scope": [
2222
"comment",
23-
"punctuation.definition.comment"
23+
"punctuation.definition.comment",
24+
"string.quoted.docstring"
2425
],
2526
"settings": {
2627
"fontStyle": "italic",

extensions/theme-red/themes/Red-color-theme.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,11 @@
7777
}
7878
},
7979
{
80-
"name": "Comment",
81-
"scope": "comment",
80+
"name": "Comments",
81+
"scope": [
82+
"comment",
83+
"string.quoted.docstring"
84+
],
8285
"settings": {
8386
"fontStyle": "italic",
8487
"foreground": "#e7c0c0ff"

0 commit comments

Comments
 (0)