mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 15:05:39 +01:00
Fix error message in Safari - Semantic token play
See https://github.com/microsoft/monaco-editor/issues/2459 for details
This commit is contained in:
parent
08dd4fad2b
commit
f01c55a282
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