mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Finalize attribute grammar
This commit is contained in:
parent
e28ea81b2b
commit
fcce07d2d1
6 changed files with 28 additions and 79 deletions
|
@ -182,10 +182,7 @@ Visibility =
|
|||
')')?
|
||||
|
||||
Attr =
|
||||
'#' '!'? '[' Path ('=' input:AttrInput)? ']'
|
||||
|
||||
AttrInput =
|
||||
Literal | TokenTree
|
||||
'#' '!'? '[' Path ('=' Literal | TokenTree)? ']'
|
||||
|
||||
ParenType =
|
||||
'(' TypeRef ')'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue