diff options
Diffstat (limited to 'crates/parser/src/grammar')
-rw-r--r-- | crates/parser/src/grammar/attributes.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/parser/src/grammar/attributes.rs b/crates/parser/src/grammar/attributes.rs index dab0f62c3..96791ffc2 100644 --- a/crates/parser/src/grammar/attributes.rs +++ b/crates/parser/src/grammar/attributes.rs | |||
@@ -30,8 +30,8 @@ fn attr(p: &mut Parser, inner: bool) { | |||
30 | match p.current() { | 30 | match p.current() { |
31 | T![=] => { | 31 | T![=] => { |
32 | p.bump(T![=]); | 32 | p.bump(T![=]); |
33 | if expressions::literal(p).is_none() { | 33 | if expressions::expr(p).0.is_none() { |
34 | p.error("expected literal"); | 34 | p.error("expected expression"); |
35 | } | 35 | } |
36 | } | 36 | } |
37 | T!['('] | T!['['] | T!['{'] => items::token_tree(p), | 37 | T!['('] | T!['['] | T!['{'] => items::token_tree(p), |