Skip to content

Commit 222f4d2

Browse files
bors[bot]Veykril
andauthored
Merge #31
31: extended_key_value_attributes r=jonas-schievink a=Veykril see rust-lang/rust#78835, allows arbitrary expressions instead of just literals Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2 parents 6cf7007 + 9abe645 commit 222f4d2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "ungrammar"
33
description = "A DSL for describing concrete syntax trees"
4-
version = "1.12.2"
4+
version = "1.13.0"
55
license = "MIT OR Apache-2.0"
66
repository = "https://github.com/matklad/ungrammar"
77
authors = ["Aleksey Kladov <aleksey.kladov@gmail.com>"]

rust.ungram

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ Visibility =
298298
'pub' ('(' 'in'? Path ')')?
299299

300300
Attr =
301-
'#' '!'? '[' Path ('=' Literal | TokenTree)? ']'
301+
'#' '!'? '[' Path ('=' Expr | TokenTree)? ']'
302302

303303
//****************************//
304304
// Statements and Expressions //

0 commit comments

Comments
 (0)