aboutsummaryrefslogtreecommitdiff
path: root/crates/parser/src/grammar
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-03-19 11:38:40 +0000
committerGitHub <[email protected]>2021-03-19 11:38:40 +0000
commit7200b994c9b1eeb97e80a3a64ca51ec452ab888b (patch)
tree4bde423fd1a54c34286b7b65e9b2c062ddbd3d99 /crates/parser/src/grammar
parent98d29d4f538899a8bd8caac7f4d2459438a1ae9a (diff)
parent4771a5679188177e653262e69ed7e33b4bf60c65 (diff)
Merge #8097
8097: Parse extended_key_value_attributes r=jonas-schievink a=Veykril Companion PR https://github.com/rust-analyzer/ungrammar/pull/31 Co-authored-by: Lukas Wirth <[email protected]>
Diffstat (limited to 'crates/parser/src/grammar')
-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),