mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-01 12:24:29 +00:00
Implement unsafe attribute parsing
This commit is contained in:
parent
c4618fe14d
commit
e1aeed3aed
8 changed files with 534 additions and 11 deletions
|
|
@ -314,7 +314,9 @@ Attr =
|
|||
'#' '!'? '[' Meta ']'
|
||||
|
||||
Meta =
|
||||
Path ('=' Expr | TokenTree)?
|
||||
'unsafe' '(' Path ('=' Expr | TokenTree)? ')'
|
||||
| Path ('=' Expr | TokenTree)?
|
||||
|
||||
|
||||
//****************************//
|
||||
// Statements and Expressions //
|
||||
|
|
@ -391,7 +393,6 @@ FormatArgsExpr =
|
|||
FormatArgsArg =
|
||||
(Name '=')? Expr
|
||||
|
||||
# MacroCallExpr
|
||||
MacroExpr =
|
||||
MacroCall
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue