Skip to content

Commit 3777b09

Browse files
committed
add color for keyword.operator
fixes operator highlighting in python
1 parent c65e18c commit 3777b09

2 files changed

Lines changed: 50 additions & 0 deletions

File tree

src/theme.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,11 @@ export function getTheme({ themeKey, name, type }) {
317317
"font_style": null,
318318
"font_weight": null
319319
},
320+
"keyword.operator": {
321+
"color": lightDark("base/color/red/5", "base/color/red/3"),
322+
"font_style": null,
323+
"font_weight": null
324+
},
320325
"label": {
321326
"color": lightDark("base/color/blue/6", "base/color/blue/2"),
322327
"font_style": null,

themes/github_theme.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,11 @@
255255
"font_style": null,
256256
"font_weight": null
257257
},
258+
"keyword.operator": {
259+
"color": "#cf222eff",
260+
"font_style": null,
261+
"font_weight": null
262+
},
258263
"label": {
259264
"color": "#0550aeff",
260265
"font_style": null,
@@ -665,6 +670,11 @@
665670
"font_style": null,
666671
"font_weight": null
667672
},
673+
"keyword.operator": {
674+
"color": "#cf222eff",
675+
"font_style": null,
676+
"font_weight": null
677+
},
668678
"label": {
669679
"color": "#0550aeff",
670680
"font_style": null,
@@ -1075,6 +1085,11 @@
10751085
"font_style": null,
10761086
"font_weight": null
10771087
},
1088+
"keyword.operator": {
1089+
"color": "#a0111fff",
1090+
"font_style": null,
1091+
"font_weight": null
1092+
},
10781093
"label": {
10791094
"color": "#023b95ff",
10801095
"font_style": null,
@@ -1485,6 +1500,11 @@
14851500
"font_style": null,
14861501
"font_weight": null
14871502
},
1503+
"keyword.operator": {
1504+
"color": "#cf222eff",
1505+
"font_style": null,
1506+
"font_weight": null
1507+
},
14881508
"label": {
14891509
"color": "#0550aeff",
14901510
"font_style": null,
@@ -1895,6 +1915,11 @@
18951915
"font_style": null,
18961916
"font_weight": null
18971917
},
1918+
"keyword.operator": {
1919+
"color": "#ff7b72ff",
1920+
"font_style": null,
1921+
"font_weight": null
1922+
},
18981923
"label": {
18991924
"color": "#79c0ffff",
19001925
"font_style": null,
@@ -2305,6 +2330,11 @@
23052330
"font_style": null,
23062331
"font_weight": null
23072332
},
2333+
"keyword.operator": {
2334+
"color": "#ff7b72ff",
2335+
"font_style": null,
2336+
"font_weight": null
2337+
},
23082338
"label": {
23092339
"color": "#79c0ffff",
23102340
"font_style": null,
@@ -2715,6 +2745,11 @@
27152745
"font_style": null,
27162746
"font_weight": null
27172747
},
2748+
"keyword.operator": {
2749+
"color": "#ff9492ff",
2750+
"font_style": null,
2751+
"font_weight": null
2752+
},
27182753
"label": {
27192754
"color": "#91cbffff",
27202755
"font_style": null,
@@ -3125,6 +3160,11 @@
31253160
"font_style": null,
31263161
"font_weight": null
31273162
},
3163+
"keyword.operator": {
3164+
"color": "#ff7b72ff",
3165+
"font_style": null,
3166+
"font_weight": null
3167+
},
31283168
"label": {
31293169
"color": "#79c0ffff",
31303170
"font_style": null,
@@ -3535,6 +3575,11 @@
35353575
"font_style": null,
35363576
"font_weight": null
35373577
},
3578+
"keyword.operator": {
3579+
"color": "#f47067ff",
3580+
"font_style": null,
3581+
"font_weight": null
3582+
},
35383583
"label": {
35393584
"color": "#6cb6ffff",
35403585
"font_style": null,

0 commit comments

Comments
 (0)