Parse extended_key_value_attributes

This commit is contained in:
Lukas Wirth 2021-03-18 22:25:10 +01:00
parent 816bc73895
commit 4771a56791
7 changed files with 32 additions and 41 deletions

View file

@ -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),