mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
full range expr
This commit is contained in:
parent
2b828c68e8
commit
de02d2891e
3 changed files with 34 additions and 1 deletions
|
@ -174,10 +174,14 @@ fn lhs(p: &mut Parser, r: Restrictions) -> Option<CompletedMarker> {
|
|||
p.bump();
|
||||
PREFIX_EXPR
|
||||
}
|
||||
// test full_range_expr
|
||||
// fn foo() { xs[..]; }
|
||||
DOTDOT => {
|
||||
m = p.start();
|
||||
p.bump();
|
||||
expr_bp(p, r, 2);
|
||||
if EXPR_FIRST.contains(p.current()) {
|
||||
expr_bp(p, r, 2);
|
||||
}
|
||||
return Some(m.complete(p, RANGE_EXPR));
|
||||
}
|
||||
_ => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue