Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Add syntax scopes to themes (#25323)
chbk2f416aebbe74
diff --git a/assets/themes/ayu/ayu.json b/assets/themes/ayu/ayu.jsonindex 745eb2b4c27..0c13afdb7b8 100644--- a/assets/themes/ayu/ayu.json+++ b/assets/themes/ayu/ayu.json@@ -236,6 +236,11 @@"font_style": null,"font_weight": null},+ "heading": {+ "color": "#bfbdb6ff",+ "font_style": null,+ "font_weight": 700+ },"hint": {"color": "#628b80ff","font_style": null,@@ -251,16 +256,21 @@"font_style": null,"font_weight": null},- "link_text": {+ "link": {"color": "#fe8f40ff","font_style": "italic","font_weight": null},- "link_uri": {+ "link.url": {"color": "#aad84cff","font_style": null,"font_weight": null},+ "namespace": {+ "color": "#bfbdb6ff",+ "font_style": null,+ "font_weight": null+ },"number": {"color": "#d2a6ffff","font_style": null,@@ -306,7 +316,7 @@"font_style": null,"font_weight": null},- "punctuation.list_marker": {+ "punctuation.markup": {"color": "#a6a5a0ff","font_style": null,"font_weight": null@@ -316,6 +326,21 @@"font_style": null,"font_weight": null},+ "raw": {+ "color": "#fe8f40ff",+ "font_style": null,+ "font_weight": null+ },+ "selector": {+ "color": "#5ac1feff",+ "font_style": null,+ "font_weight": null+ },+ "strikethrough": {+ "color": "#5ac1feff",+ "font_style": null,+ "font_weight": null+ },"string": {"color": "#a9d94bff","font_style": null,@@ -346,11 +371,6 @@"font_style": null,"font_weight": null},- "text.literal": {- "color": "#fe8f40ff",- "font_style": null,- "font_weight": null- },"title": {"color": "#bfbdb6ff","font_style": null,@@ -361,6 +381,11 @@"font_style": null,"font_weight": null},+ "unit": {+ "color": "#59c2ffff",+ "font_style": null,+ "font_weight": null+ },"variable": {"color": "#bfbdb6ff","font_style": null,@@ -607,6 +632,11 @@"font_style": null,"font_weight": null},+ "heading": {+ "color": "#5c6166ff",+ "font_style": null,+ "font_weight": 700+ },"hint": {"color": "#8ca7c2ff","font_style": null,@@ -622,16 +652,21 @@"font_style": null,"font_weight": null},- "link_text": {+ "link": {"color": "#f98d3fff","font_style": "italic","font_weight": null},- "link_uri": {+ "link.url": {"color": "#85b304ff","font_style": null,"font_weight": null},+ "namespace": {+ "color": "#5c6166ff",+ "font_style": null,+ "font_weight": null+ },"number": {"color": "#a37accff","font_style": null,@@ -677,7 +712,7 @@"font_style": null,"font_weight": null},- "punctuation.list_marker": {+ "punctuation.markup": {"color": "#73777bff","font_style": null,"font_weight": null@@ -687,6 +722,21 @@"font_style": null,"font_weight": null},+ "raw": {+ "color": "#f98d3fff",+ "font_style": null,+ "font_weight": null+ },+ "selector": {+ "color": "#3b9ee5ff",+ "font_style": null,+ "font_weight": null+ },+ "strikethrough": {+ "color": "#3b9ee5ff",+ "font_style": null,+ "font_weight": null+ },"string": {"color": "#86b300ff","font_style": null,@@ -717,11 +767,6 @@"font_style": null,"font_weight": null},- "text.literal": {- "color": "#f98d3fff",- "font_style": null,- "font_weight": null- },"title": {"color": "#5c6166ff","font_style": null,@@ -732,6 +777,11 @@"font_style": null,"font_weight": null},+ "unit": {+ "color": "#389ee6ff",+ "font_style": null,+ "font_weight": null+ },"variable": {"color": "#5c6166ff","font_style": null,@@ -978,6 +1028,11 @@"font_style": null,"font_weight": null},+ "heading": {+ "color": "#cccac2ff",+ "font_style": null,+ "font_weight": 700+ },"hint": {"color": "#7399a3ff","font_style": null,@@ -993,16 +1048,21 @@"font_style": null,"font_weight": null},- "link_text": {+ "link": {"color": "#fead66ff","font_style": "italic","font_weight": null},- "link_uri": {+ "link.url": {"color": "#d5fe80ff","font_style": null,"font_weight": null},+ "namespace": {+ "color": "#cccac2ff",+ "font_style": null,+ "font_weight": null+ },"number": {"color": "#dfbfffff","font_style": null,@@ -1048,7 +1108,7 @@"font_style": null,"font_weight": null},- "punctuation.list_marker": {+ "punctuation.markup": {"color": "#b4b3aeff","font_style": null,"font_weight": null@@ -1058,6 +1118,21 @@"font_style": null,"font_weight": null},+ "raw": {+ "color": "#fead66ff",+ "font_style": null,+ "font_weight": null+ },+ "selector": {+ "color": "#72cffeff",+ "font_style": null,+ "font_weight": null+ },+ "strikethrough": {+ "color": "#72cffeff",+ "font_style": null,+ "font_weight": null+ },"string": {"color": "#d4fe7fff","font_style": null,@@ -1088,11 +1163,6 @@"font_style": null,"font_weight": null},- "text.literal": {- "color": "#fead66ff",- "font_style": null,- "font_weight": null- },"title": {"color": "#cccac2ff","font_style": null,@@ -1103,6 +1173,11 @@"font_style": null,"font_weight": null},+ "unit": {+ "color": "#73cfffff",+ "font_style": null,+ "font_weight": null+ },"variable": {"color": "#cccac2ff","font_style": null,diff --git a/assets/themes/gruvbox/gruvbox.json b/assets/themes/gruvbox/gruvbox.jsonindex 958cf4797dc..2a6a216839f 100644--- a/assets/themes/gruvbox/gruvbox.json+++ b/assets/themes/gruvbox/gruvbox.json@@ -253,6 +253,11 @@"font_style": null,"font_weight": null},+ "heading": {+ "color": "#b8bb25ff",+ "font_style": null,+ "font_weight": 700+ },"hint": {"color": "#8c957dff","font_style": null,@@ -268,16 +273,21 @@"font_style": null,"font_weight": null},- "link_text": {+ "link": {"color": "#8ec07cff","font_style": "italic","font_weight": null},- "link_uri": {+ "link.url": {"color": "#d3869bff","font_style": null,"font_weight": null},+ "namespace": {+ "color": "#83a598ff",+ "font_style": null,+ "font_weight": null+ },"number": {"color": "#d3869bff","font_style": null,@@ -323,8 +333,8 @@"font_style": null,"font_weight": null},- "punctuation.list_marker": {- "color": "#ebdbb2ff",+ "punctuation.markup": {+ "color": "#83a598ff","font_style": null,"font_weight": null},@@ -333,6 +343,21 @@"font_style": null,"font_weight": null},+ "raw": {+ "color": "#83a598ff",+ "font_style": null,+ "font_weight": null+ },+ "selector": {+ "color": "#8ec07cff",+ "font_style": null,+ "font_weight": null+ },+ "strikethrough": {+ "color": "#83a598ff",+ "font_style": null,+ "font_weight": null+ },"string": {"color": "#b8bb25ff","font_style": null,@@ -363,11 +388,6 @@"font_style": null,"font_weight": null},- "text.literal": {- "color": "#83a598ff",- "font_style": null,- "font_weight": null- },"title": {"color": "#b8bb25ff","font_style": null,@@ -378,6 +398,11 @@"font_style": null,"font_weight": null},+ "unit": {+ "color": "#fabd2eff",+ "font_style": null,+ "font_weight": null+ },"variable": {"color": "#83a598ff","font_style": null,@@ -641,6 +666,11 @@"font_style": null,"font_weight": null},+ "heading": {+ "color": "#b8bb25ff",+ "font_style": null,+ "font_weight": 700+ },"hint": {"color": "#8c957dff","font_style": null,@@ -656,16 +686,21 @@"font_style": null,"font_weight": null},- "link_text": {+ "link": {"color": "#8ec07cff","font_style": "italic","font_weight": null},- "link_uri": {+ "link.url": {"color": "#d3869bff","font_style": null,"font_weight": null},+ "namespace": {+ "color": "#83a598ff",+ "font_style": null,+ "font_weight": null+ },"number": {"color": "#d3869bff","font_style": null,@@ -711,8 +746,8 @@"font_style": null,"font_weight": null},- "punctuation.list_marker": {- "color": "#ebdbb2ff",+ "punctuation.markup": {+ "color": "#83a598ff","font_style": null,"font_weight": null},@@ -721,6 +756,21 @@"font_style": null,"font_weight": null},+ "raw": {+ "color": "#83a598ff",+ "font_style": null,+ "font_weight": null+ },+ "selector": {+ "color": "#8ec07cff",+ "font_style": null,+ "font_weight": null+ },+ "strikethrough": {+ "color": "#83a598ff",+ "font_style": null,+ "font_weight": null+ },"string": {"color": "#b8bb25ff","font_style": null,@@ -751,11 +801,6 @@"font_style": null,"font_weight": null},- "text.literal": {- "color": "#83a598ff",- "font_style": null,- "font_weight": null- },"title": {"color": "#b8bb25ff","font_style": null,@@ -766,6 +811,11 @@"font_style": null,"font_weight": null},+ "unit": {+ "color": "#fabd2eff",+ "font_style": null,+ "font_weight": null+ },"variable": {"color": "#83a598ff","font_style": null,@@ -1029,6 +1079,11 @@"font_style": null,"font_weight": null},+ "heading": {+ "color": "#b8bb25ff",+ "font_style": null,+ "font_weight": 700+ },"hint": {"color": "#8c957dff","font_style": null,@@ -1044,16 +1099,21 @@"font_style": null,"font_weight": null},- "link_text": {+ "link": {"color": "#8ec07cff","font_style": "italic","font_weight": null},- "link_uri": {+ "link.url": {"color": "#d3869bff","font_style": null,"font_weight": null},+ "namespace": {+ "color": "#83a598ff",+ "font_style": null,+ "font_weight": null+ },"number": {"color": "#d3869bff","font_style": null,@@ -1099,8 +1159,8 @@"font_style": null,"font_weight": null},- "punctuation.list_marker": {- "color": "#ebdbb2ff",+ "punctuation.markup": {+ "color": "#83a598ff","font_style": null,"font_weight": null},@@ -1109,6 +1169,21 @@"font_style": null,"font_weight": null},+ "raw": {+ "color": "#83a598ff",+ "font_style": null,+ "font_weight": null+ },+ "selector": {+ "color": "#8ec07cff",+ "font_style": null,+ "font_weight": null+ },+ "strikethrough": {+ "color": "#83a598ff",+ "font_style": null,+ "font_weight": null+ },"string": {"color": "#b8bb25ff","font_style": null,@@ -1139,11 +1214,6 @@"font_style": null,"font_weight": null},- "text.literal": {- "color": "#83a598ff",- "font_style": null,- "font_weight": null- },"title": {"color": "#b8bb25ff","font_style": null,@@ -1154,6 +1224,11 @@"font_style": null,"font_weight": null},+ "unit": {+ "color": "#fabd2eff",+ "font_style": null,+ "font_weight": null+ },"variable": {"color": "#83a598ff","font_style": null,@@ -1417,6 +1492,11 @@"font_style": null,"font_weight": null},+ "heading": {+ "color": "#79740eff",+ "font_style": null,+ "font_weight": 700+ },"hint": {"color": "#677562ff","font_style": null,@@ -1432,16 +1512,21 @@"font_style": null,"font_weight": null},- "link_text": {+ "link": {"color": "#427b58ff","font_style": "italic","font_weight": null},- "link_uri": {+ "link.url": {"color": "#8f3e71ff","font_style": null,"font_weight": null},+ "namespace": {+ "color": "#066578ff",+ "font_style": null,+ "font_weight": null+ },"number": {"color": "#8f3e71ff","font_style": null,@@ -1487,8 +1572,8 @@"font_style": null,"font_weight": null},- "punctuation.list_marker": {- "color": "#282828ff",+ "punctuation.markup": {+ "color": "#066578ff","font_style": null,"font_weight": null},@@ -1497,6 +1582,21 @@"font_style": null,"font_weight": null},+ "raw": {+ "color": "#066578ff",+ "font_style": null,+ "font_weight": null+ },+ "selector": {+ "color": "#427b58ff",+ "font_style": null,+ "font_weight": null+ },+ "strikethrough": {+ "color": "#0b6678ff",+ "font_style": null,+ "font_weight": null+ },"string": {"color": "#79740eff","font_style": null,@@ -1527,11 +1627,6 @@"font_style": null,"font_weight": null},- "text.literal": {- "color": "#066578ff",- "font_style": null,- "font_weight": null- },"title": {"color": "#79740eff","font_style": null,@@ -1542,6 +1637,11 @@"font_style": null,"font_weight": null},+ "unit": {+ "color": "#b57613ff",+ "font_style": null,+ "font_weight": null+ },"variable": {"color": "#066578ff","font_style": null,@@ -1805,6 +1905,11 @@"font_style": null,"font_weight": null},+ "heading": {+ "color": "#79740eff",+ "font_style": null,+ "font_weight": 700+ },"hint": {"color": "#677562ff","font_style": null,@@ -1820,16 +1925,21 @@"font_style": null,"font_weight": null},- "link_text": {+ "link": {"color": "#427b58ff","font_style": "italic","font_weight": null},- "link_uri": {+ "link.url": {"color": "#8f3e71ff","font_style": null,"font_weight": null},+ "namespace": {+ "color": "#066578ff",+ "font_style": null,+ "font_weight": null+ },"number": {"color": "#8f3e71ff","font_style": null,@@ -1875,8 +1985,8 @@"font_style": null,"font_weight": null},- "punctuation.list_marker": {- "color": "#282828ff",+ "punctuation.markup": {+ "color": "#066578ff","font_style": null,"font_weight": null},@@ -1885,6 +1995,21 @@"font_style": null,"font_weight": null},+ "raw": {+ "color": "#066578ff",+ "font_style": null,+ "font_weight": null+ },+ "selector": {+ "color": "#427b58ff",+ "font_style": null,+ "font_weight": null+ },+ "strikethrough": {+ "color": "#0b6678ff",+ "font_style": null,+ "font_weight": null+ },"string": {"color": "#79740eff","font_style": null,@@ -1915,11 +2040,6 @@"font_style": null,"font_weight": null},- "text.literal": {- "color": "#066578ff",- "font_style": null,- "font_weight": null- },"title": {"color": "#79740eff","font_style": null,@@ -1930,6 +2050,11 @@"font_style": null,"font_weight": null},+ "unit": {+ "color": "#b57613ff",+ "font_style": null,+ "font_weight": null+ },"variable": {"color": "#066578ff","font_style": null,@@ -2193,6 +2318,11 @@"font_style": null,"font_weight": null},+ "heading": {+ "color": "#79740eff",+ "font_style": null,+ "font_weight": 700+ },"hint": {"color": "#677562ff","font_style": null,@@ -2208,16 +2338,21 @@"font_style": null,"font_weight": null},- "link_text": {+ "link": {"color": "#427b58ff","font_style": "italic","font_weight": null},- "link_uri": {+ "link.url": {"color": "#8f3e71ff","font_style": null,"font_weight": null},+ "namespace": {+ "color": "#066578ff",+ "font_style": null,+ "font_weight": null+ },"number": {"color": "#8f3e71ff","font_style": null,@@ -2263,8 +2398,8 @@"font_style": null,"font_weight": null},- "punctuation.list_marker": {- "color": "#282828ff",+ "punctuation.markup": {+ "color": "#066578ff","font_style": null,"font_weight": null},@@ -2273,6 +2408,21 @@"font_style": null,"font_weight": null},+ "raw": {+ "color": "#066578ff",+ "font_style": null,+ "font_weight": null+ },+ "selector": {+ "color": "#427b58ff",+ "font_style": null,+ "font_weight": null+ },+ "strikethrough": {+ "color": "#0b6678ff",+ "font_style": null,+ "font_weight": null+ },"string": {"color": "#79740eff","font_style": null,@@ -2303,11 +2453,6 @@"font_style": null,"font_weight": null},- "text.literal": {- "color": "#066578ff",- "font_style": null,- "font_weight": null- },"title": {"color": "#79740eff","font_style": null,@@ -2318,6 +2463,11 @@"font_style": null,"font_weight": null},+ "unit": {+ "color": "#b57613ff",+ "font_style": null,+ "font_weight": null+ },"variable": {"color": "#066578ff","font_style": null,diff --git a/assets/themes/one/one.json b/assets/themes/one/one.jsonindex 9d7a29cd957..42a0c935186 100644--- a/assets/themes/one/one.json+++ b/assets/themes/one/one.json@@ -239,6 +239,11 @@"font_style": null,"font_weight": null},+ "heading": {+ "color": "#d07277ff",+ "font_style": null,+ "font_weight": 400+ },"hint": {"color": "#788ca6ff","font_style": null,@@ -254,16 +259,21 @@"font_style": null,"font_weight": null},- "link_text": {+ "link": {"color": "#73ade9ff","font_style": "normal","font_weight": null},- "link_uri": {+ "link.url": {"color": "#6eb4bfff","font_style": null,"font_weight": null},+ "namespace": {+ "color": "#dce0e5ff",+ "font_style": null,+ "font_weight": null+ },"number": {"color": "#bf956aff","font_style": null,@@ -309,7 +319,7 @@"font_style": null,"font_weight": null},- "punctuation.list_marker": {+ "punctuation.markup": {"color": "#d07277ff","font_style": null,"font_weight": null@@ -319,6 +329,21 @@"font_style": null,"font_weight": null},+ "raw": {+ "color": "#a1c181ff",+ "font_style": null,+ "font_weight": null+ },+ "selector": {+ "color": "#d07277ff",+ "font_style": null,+ "font_weight": null+ },+ "strikethrough": {+ "color": "#74ade8ff",+ "font_style": null,+ "font_weight": null+ },"string": {"color": "#a1c181ff","font_style": null,@@ -349,11 +374,6 @@"font_style": null,"font_weight": null},- "text.literal": {- "color": "#a1c181ff",- "font_style": null,- "font_weight": null- },"title": {"color": "#d07277ff","font_style": null,@@ -364,6 +384,11 @@"font_style": null,"font_weight": null},+ "unit": {+ "color": "#6eb4bfff",+ "font_style": null,+ "font_weight": null+ },"variable": {"color": "#dce0e5ff","font_style": null,@@ -618,6 +643,11 @@"font_style": null,"font_weight": null},+ "heading": {+ "color": "#d3604fff",+ "font_style": null,+ "font_weight": 400+ },"hint": {"color": "#7274a7ff","font_style": null,@@ -633,16 +663,21 @@"font_style": null,"font_weight": null},- "link_text": {+ "link": {"color": "#5b79e3ff","font_style": "italic","font_weight": null},- "link_uri": {+ "link.url": {"color": "#3882b7ff","font_style": null,"font_weight": null},+ "namespace": {+ "color": "#242529ff",+ "font_style": null,+ "font_weight": null+ },"number": {"color": "#ad6e25ff","font_style": null,@@ -688,7 +723,7 @@"font_style": null,"font_weight": null},- "punctuation.list_marker": {+ "punctuation.markup": {"color": "#d3604fff","font_style": null,"font_weight": null@@ -698,6 +733,21 @@"font_style": null,"font_weight": null},+ "raw": {+ "color": "#649f57ff",+ "font_style": null,+ "font_weight": null+ },+ "selector": {+ "color": "#d3604fff",+ "font_style": null,+ "font_weight": null+ },+ "strikethrough": {+ "color": "#5c78e2ff",+ "font_style": null,+ "font_weight": null+ },"string": {"color": "#649f57ff","font_style": null,@@ -728,11 +778,6 @@"font_style": null,"font_weight": null},- "text.literal": {- "color": "#649f57ff",- "font_style": null,- "font_weight": null- },"title": {"color": "#d3604fff","font_style": null,@@ -743,6 +788,11 @@"font_style": null,"font_weight": null},+ "unit": {+ "color": "#3882b7ff",+ "font_style": null,+ "font_weight": null+ },"variable": {"color": "#242529ff","font_style": null,