mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-01 12:24:29 +00:00
Implement builtin#format_args, using rustc's format_args parser
This commit is contained in:
parent
3431d586e5
commit
abe8f1ece4
19 changed files with 1740 additions and 14 deletions
|
|
@ -382,7 +382,13 @@ AsmExpr =
|
|||
Attr* 'builtin' '#' 'asm' '(' Expr ')'
|
||||
|
||||
FormatArgsExpr =
|
||||
Attr* 'builtin' '#' 'format_args' '(' ')'
|
||||
Attr* 'builtin' '#' 'format_args' '('
|
||||
template:Expr
|
||||
(',' args:(FormatArgsArg (',' FormatArgsArg)* ','?)? )?
|
||||
')'
|
||||
|
||||
FormatArgsArg =
|
||||
(Name '=')? Expr
|
||||
|
||||
MacroExpr =
|
||||
MacroCall
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue