mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
Allign RecordPat with RecordExpr
This commit is contained in:
parent
572f1c08b6
commit
14cb96ec0e
22 changed files with 78 additions and 85 deletions
|
@ -217,7 +217,7 @@ fn record_field_pat_list(p: &mut Parser) {
|
|||
bind_pat(p, false);
|
||||
}
|
||||
}
|
||||
m.complete(p, RECORD_FIELD_PAT);
|
||||
m.complete(p, RECORD_PAT_FIELD);
|
||||
}
|
||||
}
|
||||
if !p.at(T!['}']) {
|
||||
|
@ -225,7 +225,7 @@ fn record_field_pat_list(p: &mut Parser) {
|
|||
}
|
||||
}
|
||||
p.expect(T!['}']);
|
||||
m.complete(p, RECORD_FIELD_PAT_LIST);
|
||||
m.complete(p, RECORD_PAT_FIELD_LIST);
|
||||
}
|
||||
|
||||
// test placeholder_pat
|
||||
|
|
|
@ -161,8 +161,8 @@ pub enum SyntaxKind {
|
|||
DOT_DOT_PAT,
|
||||
PATH_PAT,
|
||||
RECORD_PAT,
|
||||
RECORD_FIELD_PAT_LIST,
|
||||
RECORD_FIELD_PAT,
|
||||
RECORD_PAT_FIELD_LIST,
|
||||
RECORD_PAT_FIELD,
|
||||
TUPLE_STRUCT_PAT,
|
||||
TUPLE_PAT,
|
||||
SLICE_PAT,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue