Merge pull request #2486 from JeanPerriault/fix-for-semantic-token-provider-playground

Fix error message in Safari - Semantic token play
This commit is contained in:
Henning Dieterichs 2021-06-11 12:22:39 +02:00 committed by GitHub
commit bfcb2c5b77
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 () {