aboutsummaryrefslogtreecommitdiff
path: root/crates/parser/src
diff options
context:
space:
mode:
authorLukas Wirth <[email protected]>2021-03-18 21:25:10 +0000
committerLukas Wirth <[email protected]>2021-03-19 01:13:46 +0000
commit4771a5679188177e653262e69ed7e33b4bf60c65 (patch)
tree9cd52bcda5a72f00b176681d13897b938297fb9a /crates/parser/src
parent816bc7389516dda1eb4821f2ac4d5993cd5611dd (diff)
Parse extended_key_value_attributes
Diffstat (limited to 'crates/parser/src')
-rw-r--r--crates/parser/src/grammar/attributes.rs4
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),