mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Unleash macro 2.0 in hightlight and more
This commit is contained in:
parent
a193666361
commit
4520002b63
12 changed files with 49 additions and 31 deletions
|
@ -129,6 +129,16 @@ macro_rules! keyword_frag {
|
|||
($type:ty) => ($type)
|
||||
}
|
||||
|
||||
macro with_args($i:ident) {
|
||||
$i
|
||||
}
|
||||
|
||||
macro without_args {
|
||||
($i:ident) => {
|
||||
$i
|
||||
}
|
||||
}
|
||||
|
||||
// comment
|
||||
fn main() {
|
||||
println!("Hello, {}!", 92);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue