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-30 20:14:50 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2021-10-31 19:26:14 +0100
commitcbf442d8fd9f72c567ebf9f036a219a9ff100487 (patch)
treea128345d9a9863bef7f3670da585bcb62d13cb34 /language-web/src/main/js/editor/EditorParent.ts
parentfeat(web): show error count on generate button (diff)
downloadrefinery-cbf442d8fd9f72c567ebf9f036a219a9ff100487.tar.gz
refinery-cbf442d8fd9f72c567ebf9f036a219a9ff100487.tar.zst
refinery-cbf442d8fd9f72c567ebf9f036a219a9ff100487.zip
feat(web): semantic highlighting
Diffstat (limited to 'language-web/src/main/js/editor/EditorParent.ts')
-rw-r--r--language-web/src/main/js/editor/EditorParent.ts28
1 files changed, 28 insertions, 0 deletions
diff --git a/language-web/src/main/js/editor/EditorParent.ts b/language-web/src/main/js/editor/EditorParent.ts
index a19759a4..ea8c13b6 100644
--- a/language-web/src/main/js/editor/EditorParent.ts
+++ b/language-web/src/main/js/editor/EditorParent.ts
@@ -133,6 +133,34 @@ export const EditorParent = styled('div')(({ theme }) => {
133 '.cmt-variableName': { 133 '.cmt-variableName': {
134 color: '#c8ae9d', 134 color: '#c8ae9d',
135 }, 135 },
136 '.cmt-problem-node': {
137 '&, & .cmt-variableName': {
138 color: theme.palette.text.secondary,
139 },
140 },
141 '.cmt-problem-unique': {
142 '&, & .cmt-variableName': {
143 color: theme.palette.text.primary,
144 },
145 },
146 '.cmt-problem-abstract, .cmt-problem-new': {
147 fontStyle: 'italic',
148 },
149 '.cmt-problem-containment': {
150 fontWeight: 700,
151 },
152 '.cmt-problem-error': {
153 '&, & .cmt-typeName': {
154 color: theme.palette.error.main,
155 },
156 },
157 '.cmt-problem-builtin': {
158 '&, & .cmt-typeName, & .cmt-atom, & .cmt-variableName': {
159 color: theme.palette.primary.main,
160 fontWeight: 400,
161 fontStyle: 'normal',
162 },
163 },
136 '.cm-tooltip-autocomplete': { 164 '.cm-tooltip-autocomplete': {
137 background: theme.palette.background.paper, 165 background: theme.palette.background.paper,
138 boxShadow: `0px 2px 4px -1px rgb(0 0 0 / 20%), 166 boxShadow: `0px 2px 4px -1px rgb(0 0 0 / 20%),