mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Add DotDotPat
to AST
This is modeled on `PlaceholderPat`.
This commit is contained in:
parent
211171ffe6
commit
426112c97e
4 changed files with 40 additions and 2 deletions
|
@ -161,6 +161,7 @@ Grammar(
|
|||
"BOX_PAT",
|
||||
"BIND_PAT",
|
||||
"PLACEHOLDER_PAT",
|
||||
"DOT_DOT_PAT",
|
||||
"PATH_PAT",
|
||||
"RECORD_PAT",
|
||||
"RECORD_FIELD_PAT_LIST",
|
||||
|
@ -532,6 +533,7 @@ Grammar(
|
|||
traits: ["NameOwner"]
|
||||
),
|
||||
"PlaceholderPat": (),
|
||||
"DotDotPat": (),
|
||||
"PathPat": ( options: [ "Path" ] ),
|
||||
"RecordPat": ( options: ["RecordFieldPatList", "Path"] ),
|
||||
"RecordFieldPatList": (
|
||||
|
@ -559,6 +561,7 @@ Grammar(
|
|||
"BoxPat",
|
||||
"BindPat",
|
||||
"PlaceholderPat",
|
||||
"DotDotPat",
|
||||
"PathPat",
|
||||
"RecordPat",
|
||||
"TupleStructPat",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue