LSP: Fix auto-completion of @-macros

This commit is contained in:
Olivier Goffart 2022-05-19 18:46:40 +02:00 committed by Olivier Goffart
parent fd195904a1
commit f611651bb7
2 changed files with 33 additions and 0 deletions

View file

@ -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 '@'");
}
}