From fba36a6a81809f3a83a2f1833b135144cbf1ea41 Mon Sep 17 00:00:00 2001 From: lianahus Date: Mon, 20 Mar 2023 17:19:16 +0100 Subject: [PATCH] adding delete as a keyword --- libs/remix-ui/editor/src/lib/remix-ui-editor.tsx | 3 +-- libs/remix-ui/editor/src/lib/syntaxes/solidity.ts | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx b/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx index 3df0397c03..0097e05f66 100644 --- a/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx +++ b/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx @@ -12,8 +12,6 @@ import { monacoTypes } from '@remix-ui/editor'; import './remix-ui-editor.css' import { loadTypes } from './web-types' - - import { RemixHoverProvider } from './providers/hoverProvider' import { RemixReferenceProvider } from './providers/referenceProvider' import { RemixCompletionProvider } from './providers/completionProvider' @@ -262,6 +260,7 @@ export const EditorUI = (props: EditorUIProps) => { { token: 'keyword.continue', foreground: warningColor }, { token: 'keyword.while', foreground: warningColor }, { token: 'keyword.do', foreground: warningColor }, + { token: 'keyword.delete', foreground: warningColor }, { token: 'keyword.if', foreground: yellowColor }, { token: 'keyword.else', foreground: yellowColor }, diff --git a/libs/remix-ui/editor/src/lib/syntaxes/solidity.ts b/libs/remix-ui/editor/src/lib/syntaxes/solidity.ts index dfb388fda4..fda352456e 100644 --- a/libs/remix-ui/editor/src/lib/syntaxes/solidity.ts +++ b/libs/remix-ui/editor/src/lib/syntaxes/solidity.ts @@ -1266,6 +1266,7 @@ export const solidityTokensProvider = { 'constant', 'fallback', 'receive', + 'delete', 'if', 'else', 'for',