Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/parser/src/grammar/attributes.rs')
| -rw-r--r-- | crates/parser/src/grammar/attributes.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/parser/src/grammar/attributes.rs b/crates/parser/src/grammar/attributes.rs index 80d7b09b3e..574629f31a 100644 --- a/crates/parser/src/grammar/attributes.rs +++ b/crates/parser/src/grammar/attributes.rs @@ -41,7 +41,7 @@ pub(super) fn meta(p: &mut Parser) { match p.current() { T![=] => { p.bump(T![=]); - if expressions::expr(p).0.is_none() { + if !expressions::expr(p) { p.error("expected expression"); } } |