You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for pointing this out! That playground demo is an example, and in this particular implementation only text within brackets should be highlighted.
As this is not relevant for demoing the semantic tokenization, feel free to file a PR! We'd be happy to merge your fix.
Hello,
When opening https://microsoft.github.io/monaco-editor/playground.html#extending-language-services-semantic-tokens-provider-example in Safari (version 14 or previous), I have this "SyntaxError: Invalid regular expression: invalid group specifier name" displayed in editor.
This seems linked to "Lookbehind in JS regular expressions", not supported in Safari.
https://caniuse.com/js-regexp-lookbehind
If replacing
with simpler
this works (at least in Chrome and Safari for macOS).
I could PR this but I'm not sure why brackets are used in original regex.
monaco-editor version: 0.23.0
Browser: Safari 14.1
OS: macOS Catalina 10.15.7
The text was updated successfully, but these errors were encountered: