Skip to content

Commit 3c3095f

Browse files
Add a Meta node representing attribute contents
1 parent 9f24a24 commit 3c3095f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rust.ungram

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

300300
Attr =
301-
'#' '!'? '[' Path ('=' Expr | TokenTree)? ']'
301+
'#' '!'? '[' Meta ']'
302+
303+
Meta =
304+
Path ('=' Expr | TokenTree)?
302305

303306
//****************************//
304307
// Statements and Expressions //

0 commit comments

Comments
 (0)