mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Parse tuple struct field initialization
This commit is contained in:
parent
2fbec23d99
commit
957b5ed23a
4 changed files with 31 additions and 8 deletions
|
@ -274,7 +274,7 @@ fn name(p: &mut Parser) {
|
|||
}
|
||||
|
||||
fn name_ref(p: &mut Parser) {
|
||||
if p.at(IDENT) {
|
||||
if p.at(IDENT) || p.at(INT_NUMBER) {
|
||||
let m = p.start();
|
||||
p.bump();
|
||||
m.complete(p, NAME_REF);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue