We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider this .slint code:
import { Button } from "std-widgets.slint"; export component AppWindow { property <int> value; Text { text: "\{root.value > 0 ? "\u{2003}" : ""}"; } Button { clicked => { // ... } } }
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:
{
The text was updated successfully, but these errors were encountered:
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.
Sorry, something went wrong.
This is not fixable within the limits of the textmate grammar :-/ It's basically regular expressions matching line contents.
No branches or pull requests
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:The text was updated successfully, but these errors were encountered: