mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Add Definition kind for asm register operand
This commit is contained in:
parent
164b15bc62
commit
a600e1df73
12 changed files with 59 additions and 35 deletions
|
@ -453,9 +453,13 @@ fn parse_clobber_abi(p: &mut Parser<'_>) {
|
|||
fn parse_reg(p: &mut Parser<'_>) {
|
||||
p.expect(T!['(']);
|
||||
if p.at(T![ident]) {
|
||||
name_ref(p)
|
||||
let m = p.start();
|
||||
name_ref(p);
|
||||
m.complete(p, ASM_REG_SPEC);
|
||||
} else if p.at(T![string]) {
|
||||
p.bump_any()
|
||||
let m = p.start();
|
||||
p.bump_any();
|
||||
m.complete(p, ASM_REG_SPEC);
|
||||
} else {
|
||||
p.err_and_bump("expected register name");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue