mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 22:02:55 +01:00
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:
commit
bfcb2c5b77
1 changed files with 1 additions and 1 deletions
|
|
@ -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', {
|
monaco.languages.registerDocumentSemanticTokensProvider('plaintext', {
|
||||||
getLegend: function () {
|
getLegend: function () {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue