Skip to content

Commit 21683ba

Browse files
committed
style: add syntax color for function.method.call
1 parent 7ae814b commit 21683ba

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

src/theme.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,12 @@ function getTheme({ style, name }: { style: Style, name: string }): Record<strin
320320
"font_style": null,
321321
"font_weight": null
322322
},
323+
"constant.language": {
324+
"color": primer.blue[6],
325+
"background_color": null,
326+
"font_style": null,
327+
"font_weight": null
328+
},
323329
"constructor": {
324330
"color": primer.green[6],
325331
"background_color": null,
@@ -411,7 +417,7 @@ function getTheme({ style, name }: { style: Style, name: string }): Record<strin
411417
"font_weight": null
412418
},
413419
"function.method.call": {
414-
"color": null,
420+
"color": pick({ light: primer.purple[5], dark: primer.purple[6] }),
415421
"background_color": null,
416422
"font_style": null,
417423
"font_weight": null
@@ -813,7 +819,7 @@ function getTheme({ style, name }: { style: Style, name: string }): Record<strin
813819
"font_weight": null
814820
},
815821
"variant": {
816-
"color": "#000",
822+
"color": null,
817823
"background_color": null,
818824
"font_style": null,
819825
"font_weight": null

themes/github-classic.json

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,12 @@
303303
"font_style": null,
304304
"font_weight": null
305305
},
306+
"constant.language": {
307+
"color": "#005cc5",
308+
"background_color": null,
309+
"font_style": null,
310+
"font_weight": null
311+
},
306312
"constructor": {
307313
"color": "#22863a",
308314
"background_color": null,
@@ -394,7 +400,7 @@
394400
"font_weight": null
395401
},
396402
"function.method.call": {
397-
"color": null,
403+
"color": "#6f42c1",
398404
"background_color": null,
399405
"font_style": null,
400406
"font_weight": null
@@ -796,7 +802,7 @@
796802
"font_weight": null
797803
},
798804
"variant": {
799-
"color": "#000",
805+
"color": null,
800806
"background_color": null,
801807
"font_style": null,
802808
"font_weight": null
@@ -1104,6 +1110,12 @@
11041110
"font_style": null,
11051111
"font_weight": null
11061112
},
1113+
"constant.language": {
1114+
"color": "#79b8ff",
1115+
"background_color": null,
1116+
"font_style": null,
1117+
"font_weight": null
1118+
},
11071119
"constructor": {
11081120
"color": "#85e89d",
11091121
"background_color": null,
@@ -1195,7 +1207,7 @@
11951207
"font_weight": null
11961208
},
11971209
"function.method.call": {
1198-
"color": null,
1210+
"color": "#b392f0",
11991211
"background_color": null,
12001212
"font_style": null,
12011213
"font_weight": null
@@ -1597,7 +1609,7 @@
15971609
"font_weight": null
15981610
},
15991611
"variant": {
1600-
"color": "#000",
1612+
"color": null,
16011613
"background_color": null,
16021614
"font_style": null,
16031615
"font_weight": null

0 commit comments

Comments
 (0)