mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-08 19:40:46 +00:00
Fix fail to parse :: for meta in mbe
This commit is contained in:
parent
3d662e320b
commit
20eda09712
2 changed files with 4 additions and 2 deletions
|
@ -95,7 +95,7 @@ pub(crate) mod fragments {
|
|||
// https://doc.rust-lang.org/reference/paths.html#simple-paths
|
||||
// The start of an meta must be a simple path
|
||||
match p.current() {
|
||||
IDENT | T![::] | T![super] | T![self] | T![crate] => p.bump_any(),
|
||||
IDENT | T![super] | T![self] | T![crate] => p.bump_any(),
|
||||
T![=] => {
|
||||
p.bump_any();
|
||||
match p.current() {
|
||||
|
@ -105,6 +105,7 @@ pub(crate) mod fragments {
|
|||
}
|
||||
break;
|
||||
}
|
||||
_ if p.at(T![::]) => p.bump(T![::]),
|
||||
_ => break,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue