From 299c4d93597b3065e6a1017ebe692cde66fc5e39 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Mon, 11 Oct 2021 01:03:21 +0200 Subject: feat(web): experiment with Lezer parser --- language-web/src/main/js/editor/EditorParent.ts | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'language-web/src/main/js/editor/EditorParent.ts') diff --git a/language-web/src/main/js/editor/EditorParent.ts b/language-web/src/main/js/editor/EditorParent.ts index bf67522b..316c5072 100644 --- a/language-web/src/main/js/editor/EditorParent.ts +++ b/language-web/src/main/js/editor/EditorParent.ts @@ -49,13 +49,29 @@ export const EditorParent = styled('div')(({ theme }) => ({ background: theme.palette.background.paper, borderTop: `1px solid ${theme.palette.divider}`, 'button[name="close"]': { - // HACK We can't hook the panel close button to go through `EditorStore`, - // so we hide it altogether. - display: 'none', + color: theme.palette.text.secondary, + cursor: 'pointer', }, }, + '.cm-foldPlaceholder': { + background: theme.palette.background.paper, + borderColor: theme.palette.text.disabled, + color: theme.palette.text.secondary, + }, '.cmt-comment': { fontVariant: 'italic', color: theme.palette.text.disabled, }, + '.cmt-number': { + color: '#6188a6', + }, + '.cmt-keyword': { + color: theme.palette.primary.main, + }, + '.cmt-typeName, .cmt-atom': { + color: theme.palette.text.primary, + }, + '.cmt-variableName': { + color: '#c8ae9d', + }, })); -- cgit v1.2.3-54-g00ecf