From 4794c840d53fb9fb29d1751f1d4c45133dcfeeb7 Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Tue, 25 Jul 2023 11:11:57 +0100 Subject: [PATCH] Remove used comments --- .../editor/src/lib/syntaxes/circom.ts | 31 ++----------------- 1 file changed, 3 insertions(+), 28 deletions(-) diff --git a/libs/remix-ui/editor/src/lib/syntaxes/circom.ts b/libs/remix-ui/editor/src/lib/syntaxes/circom.ts index b610dd4f8e..6b09887c3a 100644 --- a/libs/remix-ui/editor/src/lib/syntaxes/circom.ts +++ b/libs/remix-ui/editor/src/lib/syntaxes/circom.ts @@ -16,7 +16,6 @@ export const circomLanguageConfig = (monaco) => ({ onEnterRules: [ { - // e.g. /** | */ beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/, afterText: /^\s*\*\/$/, action: { @@ -25,7 +24,6 @@ export const circomLanguageConfig = (monaco) => ({ }, }, { - // e.g. /** ...| beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/, action: { indentAction: monaco.languages.IndentAction.None, @@ -33,7 +31,6 @@ export const circomLanguageConfig = (monaco) => ({ }, }, { - // e.g. * ...| beforeText: /^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/, action: { indentAction: monaco.languages.IndentAction.None, @@ -41,7 +38,6 @@ export const circomLanguageConfig = (monaco) => ({ }, }, { - // e.g. */| beforeText: /^(\t|(\ \ ))*\ \*\/\s*$/, action: { indentAction: monaco.languages.IndentAction.None, @@ -126,18 +122,12 @@ export const circomTokensProvider = { "<==", ], - // we include these common regular expressions - // symbols: /[=>](?!@symbols)/, "@brackets"], - // [ - // /@symbols/, - // { cases: { "@operators": "operator", "@default": "" } }, - // ], - - // @ annotations. - // As an example, we emit a debugging log message on these tokens. - // Note: message are supressed during the first load -- change some lines to see them. [ /@\s*[a-zA-Z_\$][\w\$]*/, { token: "annotation", log: "annotation token: $0" }, ], - // numbers [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"], [/0[xX][0-9a-fA-F]+/, "number.hex"], [/\d+/, "number"], - // delimiter: after number because of .\d floats [/[;,.]/, "delimiter"], - // strings - [/"([^"\\]|\\.)*$/, "string.invalid"], // non-teminated string + [/"([^"\\]|\\.)*$/, "string.invalid"], [/"/, { token: "string.quote", bracket: "@open", next: "@string" }], - // characters [/'[^\\']'/, "string"], [/(')(@escapes)(')/, ["string", "string.escape", "string"]], [/'/, "string.invalid"], @@ -190,7 +165,7 @@ export const circomTokensProvider = { comment: [ [/[^\/*]+/, "comment"], - [/\/\*/, "comment", "@push"], // nested comment + [/\/\*/, "comment", "@push"], ["\\*/", "comment", "@pop"], [/[\/*]/, "comment"], ],