mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Parse and validate attributes in blocks
This commit is contained in:
parent
137b1ccb71
commit
00e6b5d26c
10 changed files with 352 additions and 0 deletions
|
@ -42,6 +42,8 @@ pub(crate) fn block(p: &mut Parser) {
|
|||
}
|
||||
let m = p.start();
|
||||
p.bump();
|
||||
// This is checked by a validator
|
||||
attributes::inner_attributes(p);
|
||||
|
||||
while !p.at(EOF) && !p.at(R_CURLY) {
|
||||
match p.current() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue