From bcb8031c8f9be0864eeb5a3e8566bf347dd6a2ae Mon Sep 17 00:00:00 2001 From: Yash-Singh1 Date: Sun, 22 Aug 2021 09:52:31 -0700 Subject: [PATCH] style comments --- src/lib/components/editor/util.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/lib/components/editor/util.ts b/src/lib/components/editor/util.ts index 5a8498bb..e8c831e4 100644 --- a/src/lib/components/editor/util.ts +++ b/src/lib/components/editor/util.ts @@ -95,13 +95,11 @@ export const initEditor = (monacoEditor): void => { [/".*"/, 'string'], [/#(\d|[a-zA-Z])*;/, 'html.entity/hex-color-code'], [/#(?:[0-9a-fA-F]{3}){1,2}/, 'html.entity/hex-color-code'], - [/<<.+>>/, 'annotation'] + [/<<.+>>/, 'annotation'], + [/%%.*$/, 'comment'] ] }, - whitespace: [ - [/[ \t\r\n]+/, 'white'], - [/%%.*$/, 'comment'] - ] + whitespace: [[/[ \t\r\n]+/, 'white']] }); monacoEditor.editor.defineTheme('mermaidTheme', { @@ -115,7 +113,8 @@ export const initEditor = (monacoEditor): void => { { token: 'transition', foreground: '008800', fontStyle: 'bold' }, { token: 'delimiter.bracket', foreground: '000000', fontStyle: 'bold' }, { token: 'html.entity/hex-color-code', foreground: 'f5b436' }, - { token: 'annotation', foreground: '4b4b96' } + { token: 'annotation', foreground: '4b4b96' }, + { token: 'comment', foreground: '888c89' } ] });