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'] ]