Unnamed repository; edit this file 'description' to name the repository.
Merge rust-analyzer/ungrammar#31
31: extended_key_value_attributes r=jonas-schievink a=Veykril see https://github.com/rust-lang/rust/issues/78835, allows arbitrary expressions instead of just literals Co-authored-by: Lukas Wirth <[email protected]>
bors[bot] 2021-03-19
parent 6cc1ad0 · parent cbf13ef · commit 2469b1c
-rw-r--r--lib/ungrammar/Cargo.toml2
-rw-r--r--lib/ungrammar/rust.ungram2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/ungrammar/Cargo.toml b/lib/ungrammar/Cargo.toml
index 002a38651b..e5c1d501a7 100644
--- a/lib/ungrammar/Cargo.toml
+++ b/lib/ungrammar/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "ungrammar"
description = "A DSL for describing concrete syntax trees"
-version = "1.12.2"
+version = "1.13.0"
license = "MIT OR Apache-2.0"
repository = "https://github.com/matklad/ungrammar"
authors = ["Aleksey Kladov <[email protected]>"]
diff --git a/lib/ungrammar/rust.ungram b/lib/ungrammar/rust.ungram
index e7542b182a..3ebe1cbd32 100644
--- a/lib/ungrammar/rust.ungram
+++ b/lib/ungrammar/rust.ungram
@@ -298,7 +298,7 @@ Visibility =
'pub' ('(' 'in'? Path ')')?
Attr =
- '#' '!'? '[' Path ('=' Literal | TokenTree)? ']'
+ '#' '!'? '[' Path ('=' Expr | TokenTree)? ']'
//****************************//
// Statements and Expressions //