From ae2880c8a2d04f4120704cc5dd6f225eda44c9dd Mon Sep 17 00:00:00 2001 From: Yash-Singh1 Date: Tue, 17 Aug 2021 17:11:22 -0700 Subject: [PATCH] Asymmetric, rhombus, hexagonal nodes --- src/lib/components/editor/util.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/editor/util.ts b/src/lib/components/editor/util.ts index 847ad4b5..eb85b3a2 100644 --- a/src/lib/components/editor/util.ts +++ b/src/lib/components/editor/util.ts @@ -27,10 +27,10 @@ export const initEditor = (monacoEditor): void => { ), tokenizer: { root: [ - [/[{}]/, 'delimiter.bracket'], [/[a-z_$][\w$]*/, { cases: { '@typeKeywords': 'keyword', '@keywords': 'keyword' } }], + [/[[{(}>]+.+?[)\]}]+/, 'string'], [/[-+=>ox]+/, { cases: { '@arrows': 'transition' } }], - [/[[{(}]+.+?[)\]}]+/, 'string'], + [/[{}]/, 'delimiter.bracket'], [/".*"/, 'string'], [/#(\d|[a-zA-Z])*;/, 'html.entity'] ]