mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
Parse extended_key_value_attributes
This commit is contained in:
parent
816bc73895
commit
4771a56791
7 changed files with 32 additions and 41 deletions
|
@ -30,8 +30,8 @@ fn attr(p: &mut Parser, inner: bool) {
|
|||
match p.current() {
|
||||
T![=] => {
|
||||
p.bump(T![=]);
|
||||
if expressions::literal(p).is_none() {
|
||||
p.error("expected literal");
|
||||
if expressions::expr(p).0.is_none() {
|
||||
p.error("expected expression");
|
||||
}
|
||||
}
|
||||
T!['('] | T!['['] | T!['{'] => items::token_tree(p),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue