mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
LSP: Fix auto-completion of @
-macros
This commit is contained in:
parent
fd195904a1
commit
f611651bb7
2 changed files with 33 additions and 0 deletions
|
@ -231,6 +231,7 @@ fn parse_at_keyword(p: &mut impl Parser) {
|
|||
}
|
||||
_ => {
|
||||
p.consume();
|
||||
p.test(SyntaxKind::Identifier); // consume the identifier, so that autocomplete works
|
||||
p.error("Expected 'image-url', 'linear-gradient' or 'radial-gradient' after '@'");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue