diff options
author | Kristóf Marussy <kristof@marussy.com> | 2021-10-11 01:42:22 +0200 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2021-10-31 19:26:10 +0100 |
commit | e1d6802843960e911f19c7e9c4a4b626ae854b90 (patch) | |
tree | e62d4d3fa0bc4f3ce1582eb2edb35b2d0d030994 /language-web/src/main/js/editor/EditorParent.ts | |
parent | fix(web): a11y issue reported by Lighthouse (diff) | |
download | refinery-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.ts | 3 |
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 | }, |