aboutsummaryrefslogtreecommitdiffstats
path: root/language-web/src/main/js/editor/EditorParent.ts
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2021-10-11 01:42:22 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2021-10-31 19:26:10 +0100
commite1d6802843960e911f19c7e9c4a4b626ae854b90 (patch)
treee62d4d3fa0bc4f3ce1582eb2edb35b2d0d030994 /language-web/src/main/js/editor/EditorParent.ts
parentfix(web): a11y issue reported by Lighthouse (diff)
downloadrefinery-e1d6802843960e911f19c7e9c4a4b626ae854b90.tar.gz
refinery-e1d6802843960e911f19c7e9c4a4b626ae854b90.tar.zst
refinery-e1d6802843960e911f19c7e9c4a4b626ae854b90.zip
feat(web): simplify contextual parsing
* More relaxted parsing in the browser for stable variable/node identifier classification. * String support in the browser. * contains, refers, and opposite keywords are no longer contextual, which simplifies parsing in the browser.
Diffstat (limited to 'language-web/src/main/js/editor/EditorParent.ts')
-rw-r--r--language-web/src/main/js/editor/EditorParent.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/language-web/src/main/js/editor/EditorParent.ts b/language-web/src/main/js/editor/EditorParent.ts
index 316c5072..a2f6c266 100644
--- a/language-web/src/main/js/editor/EditorParent.ts
+++ b/language-web/src/main/js/editor/EditorParent.ts
@@ -65,6 +65,9 @@ export const EditorParent = styled('div')(({ theme }) => ({
65 '.cmt-number': { 65 '.cmt-number': {
66 color: '#6188a6', 66 color: '#6188a6',
67 }, 67 },
68 '.cmt-string': {
69 color: theme.palette.secondary.dark,
70 },
68 '.cmt-keyword': { 71 '.cmt-keyword': {
69 color: theme.palette.primary.main, 72 color: theme.palette.primary.main,
70 }, 73 },