From 67c81e8cf7b03ae395496575cb1d586956658fa9 Mon Sep 17 00:00:00 2001 From: Nilay Majorwar Date: Thu, 3 Feb 2022 22:30:09 +0530 Subject: [PATCH] Change editor token names to grammar terms --- ui/code-editor/themes/dark.json | 35 +++++++++++++++++--------------- ui/code-editor/themes/light.json | 35 +++++++++++++++++--------------- 2 files changed, 38 insertions(+), 32 deletions(-) diff --git a/ui/code-editor/themes/dark.json b/ui/code-editor/themes/dark.json index 4ffa3a9..6f0882e 100644 --- a/ui/code-editor/themes/dark.json +++ b/ui/code-editor/themes/dark.json @@ -71,22 +71,25 @@ "selection.background": "#2D72D2" }, "rules": [ - { "foreground": "#ffffff", "token": "plain" }, - { "foreground": "#61AFEF", "token": "blue" }, - { "foreground": "#72CA9B", "token": "green" }, - { "foreground": "#EC9A3C", "token": "orange" }, - { "foreground": "#E76A6E", "token": "red" }, - { "foreground": "#EB6847", "token": "vermillion" }, - { "foreground": "#F5498B", "token": "rose" }, - { "foreground": "#BD6BBD", "token": "violet" }, - { "foreground": "#9881F3", "token": "indigo" }, - { "foreground": "#3FA6DA", "token": "cerulean" }, - { "foreground": "#13C9BA", "token": "turquoise" }, - { "foreground": "#43BF4D", "token": "forest" }, - { "foreground": "#B6D94C", "token": "lime" }, - { "foreground": "#F0B726", "token": "gold" }, - { "foreground": "#AF855A", "token": "sepia" }, - { "foreground": "#8F99A8", "fontStyle": "italic", "token": "comment" } + { "token": "", "foreground": "F6F7F9" }, + { "token": "invalid", "foreground": "ff0000" }, + { "token": "emphasis", "fontStyle": "italic" }, + { "token": "strong", "fontStyle": "bold" }, + { "token": "identifier", "foreground": "EC9A3C", "note": "orange" }, + { "token": "variable", "foreground": "EF596F", "note": "red" }, + { "token": "constant", "foreground": "F0B726", "note": "gold" }, + { "token": "number", "foreground": "F0B726", "note": "gold" }, + { "token": "annotation", "foreground": "13C9BA", "note": "turquoise" }, + { "token": "type", "foreground": "EC9A3C", "note": "orange" }, + { "token": "delimiter", "foreground": "F6F7F9", "note": "white" }, + { "token": "tag", "foreground": "43BF4D", "note": "forest" }, + { "token": "meta", "foreground": "61AFEF", "note": "blue" }, + { "token": "key", "foreground": "EF596F", "note": "red" }, + { "token": "attribute.name", "foreground": "EF596F", "note": "red" }, + { "token": "attribute.value", "foreground": "F0B726", "note": "gold" }, + { "token": "string", "foreground": "72CA9B", "note": "green" }, + { "token": "keyword", "foreground": "D55FDE", "note": "violet" }, + { "token": "comment", "foreground": "#8F99A8", "fontStyle": "italic" } ], "encodedTokensColors": [] } diff --git a/ui/code-editor/themes/light.json b/ui/code-editor/themes/light.json index 3d1b034..9ac3db0 100644 --- a/ui/code-editor/themes/light.json +++ b/ui/code-editor/themes/light.json @@ -74,22 +74,25 @@ "selection.background": "#0E5A8A" }, "rules": [ - { "foreground": "#1C2127", "token": "plain" }, - { "foreground": "#2D72D2", "token": "blue" }, - { "foreground": "#238551", "token": "green" }, - { "foreground": "#C87619", "token": "orange" }, - { "foreground": "#CD4246", "token": "red" }, - { "foreground": "#D33D17", "token": "vermillion" }, - { "foreground": "#DB2C6F", "token": "rose" }, - { "foreground": "#9D3F9D", "token": "violet" }, - { "foreground": "#7961DB", "token": "indigo" }, - { "foreground": "#147EB3", "token": "cerulean" }, - { "foreground": "#00A396", "token": "turquoise" }, - { "foreground": "#29A634", "token": "forest" }, - { "foreground": "#8EB125", "token": "lime" }, - { "foreground": "#D1980B", "token": "gold" }, - { "foreground": "#946638", "token": "sepia" }, - { "foreground": "#5C7080", "fontStyle": "italic", "token": "comment" } + { "token": "", "foreground": "252A31" }, + { "token": "invalid", "foreground": "ff0000" }, + { "token": "emphasis", "fontStyle": "italic" }, + { "token": "strong", "fontStyle": "bold" }, + { "token": "identifier", "foreground": "C87619", "note": "orange" }, + { "token": "variable", "foreground": "CD4246", "note": "red" }, + { "token": "constant", "foreground": "D1980B", "note": "gold" }, + { "token": "number", "foreground": "D1980B", "note": "gold" }, + { "token": "annotation", "foreground": "00A396", "note": "turquoise" }, + { "token": "type", "foreground": "C87619", "note": "orange" }, + { "token": "delimiter", "foreground": "202B33", "note": "white" }, + { "token": "tag", "foreground": "29A634", "note": "forest" }, + { "token": "meta", "foreground": "2D72D2", "note": "blue" }, + { "token": "key", "foreground": "CD4246", "note": "red" }, + { "token": "attribute.name", "foreground": "CD4246", "note": "red" }, + { "token": "attribute.value", "foreground": "D1980B", "note": "gold" }, + { "token": "string", "foreground": "238551", "note": "green" }, + { "token": "keyword", "foreground": "9D3F9D", "note": "violet" }, + { "token": "comment", "foreground": "5F6B7C", "fontStyle": "italic" } ], "encodedTokensColors": [] }