mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 21:43:37 +00:00
Account for deref token in syntax highlighting of unsafe, add test for that case
This commit is contained in:
parent
7f2219dc76
commit
6c1682396c
1 changed files with 1 additions and 0 deletions
|
@ -389,6 +389,7 @@ fn main() {
|
||||||
unsafe_fn();
|
unsafe_fn();
|
||||||
HasUnsafeFn.unsafe_method();
|
HasUnsafeFn.unsafe_method();
|
||||||
let y = *x;
|
let y = *x;
|
||||||
|
let z = -x;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"#
|
"#
|
||||||
|
|
Loading…
Reference in a new issue