HTML Entities

This commit is contained in:
Yash-Singh1
2021-08-17 17:01:08 -07:00
parent 76a70be939
commit ca07ed764d
+4 -2
View File
@@ -31,7 +31,8 @@ export const initEditor = (monacoEditor): void => {
[/[a-z_$][\w$]*/, { cases: { '@typeKeywords': 'keyword', '@keywords': 'keyword' } }],
[/[-+=>ox]+/, { cases: { '@arrows': 'transition' } }],
[/[[{(}]+.+?[)\]}]+/, 'string'],
[/".*"/, 'string']
[/".*"/, 'string'],
[/#(\d|[a-zA-Z])*;/, 'html.entity']
]
},
whitespace: [
@@ -48,7 +49,8 @@ export const initEditor = (monacoEditor): void => {
{ token: 'custom-error', foreground: 'ff0000', fontStyle: 'bold' },
{ token: 'string', foreground: 'AA8500' },
{ token: 'transition', foreground: '008800', fontStyle: 'bold' },
{ token: 'delimiter.bracket', foreground: '000000', fontStyle: 'bold' }
{ token: 'delimiter.bracket', foreground: '000000', fontStyle: 'bold' },
{ token: 'html.entity', foreground: 'f5b436' }
]
});