Add @rust-attr on scturct (#2785)

Fixes: #2660
This commit is contained in:
Amirhossein Akhlaghpour 2023-06-05 17:59:55 +03:30 committed by GitHub
parent bef2e3617d
commit 3a4f3c61d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 196 additions and 16 deletions

View file

@ -422,8 +422,9 @@ declare_syntax! {
/// `[ type ]`
ArrayType -> [ Type ],
/// `struct Foo := { ... }
StructDeclaration -> [DeclaredIdentifier, ObjectType],
StructDeclaration -> [DeclaredIdentifier, ObjectType, ?AtRustAttr],
/// `@rust-attr(...)`
AtRustAttr -> [],
}
}