mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Unify naming of tuple fields
This commit is contained in:
parent
675e86becf
commit
b9c6aa9ec9
5 changed files with 14 additions and 14 deletions
|
@ -359,7 +359,7 @@ IndexExpr =
|
|||
Attr* base:Expr '[' index:Expr ']'
|
||||
|
||||
TupleExpr =
|
||||
Attr* '(' Attr* (Expr (',' Expr)* ','?)? ')'
|
||||
Attr* '(' Attr* fields:(Expr (',' Expr)* ','?)? ')'
|
||||
|
||||
RecordExpr =
|
||||
Path RecordExprFieldList
|
||||
|
@ -560,16 +560,16 @@ RecordPatField =
|
|||
Attr* (NameRef ':')? Pat
|
||||
|
||||
TupleStructPat =
|
||||
Path '(' args:(Pat (',' Pat)* ','?)? ')'
|
||||
Path '(' fields:(Pat (',' Pat)* ','?)? ')'
|
||||
|
||||
TuplePat =
|
||||
'(' args:(Pat (',' Pat)* ','?)? ')'
|
||||
'(' fields:(Pat (',' Pat)* ','?)? ')'
|
||||
|
||||
ParenPat =
|
||||
'(' Pat ')'
|
||||
|
||||
SlicePat =
|
||||
'[' args:(Pat (',' Pat)* ','?)? ']'
|
||||
'[' (Pat (',' Pat)* ','?)? ']'
|
||||
|
||||
PathPat =
|
||||
Path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue