Open Enyium opened 2 months ago
Interestingly, the snippet you pasted on github has a similar issue in the github highlighting. So this point out to a bug in the textmate grammar (https://github.com/slint-ui/slint/blob/master/editors/vscode/slint.tmLanguage.json) which is used by both.
This is not fixable within the limits of the textmate grammar :-/ It's basically regular expressions matching line contents.
Consider this .slint code:
It works, but is rendered for me in VS Code on Windows 10 in the following broken way:
With just the string
}
instead of the whole escape sequence, it's still broken:With only
{
though, everything is correct: