Fix error message in Safari - Semantic token play

See https://github.com/microsoft/monaco-editor/issues/2459 for details
This commit is contained in:
El Jùanch0 2021-05-19 11:25:23 +02:00 committed by GitHub
parent 08dd4fad2b
commit f01c55a282
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,7 +35,7 @@ function getModifier(modifiers) {
}
}
const tokenPattern = new RegExp('(?<=\\[)([a-zA-Z]+)((?:\\.[a-zA-Z]+)*)(?=\\])', 'g');
const tokenPattern = new RegExp('([a-zA-Z]+)((?:\\.[a-zA-Z]+)*)', 'g');
monaco.languages.registerDocumentSemanticTokensProvider('plaintext', {
getLegend: function () {