diff options
author | Edwin Cheng <[email protected]> | 2021-03-27 05:48:15 +0000 |
---|---|---|
committer | Edwin Cheng <[email protected]> | 2021-03-27 06:42:49 +0000 |
commit | 4520002b63b5a27e7676822aecfb2d435bf36e5a (patch) | |
tree | d59641111ce77db0117714180ae1d448056cf3c6 /crates/ide/src/syntax_highlighting/tests.rs | |
parent | a193666361f6ea9725b927a35f5baf77da713c0a (diff) |
Unleash macro 2.0 in hightlight and more
Diffstat (limited to 'crates/ide/src/syntax_highlighting/tests.rs')
-rw-r--r-- | crates/ide/src/syntax_highlighting/tests.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crates/ide/src/syntax_highlighting/tests.rs b/crates/ide/src/syntax_highlighting/tests.rs index 7b2922b0d..369ae0972 100644 --- a/crates/ide/src/syntax_highlighting/tests.rs +++ b/crates/ide/src/syntax_highlighting/tests.rs | |||
@@ -129,6 +129,16 @@ macro_rules! keyword_frag { | |||
129 | ($type:ty) => ($type) | 129 | ($type:ty) => ($type) |
130 | } | 130 | } |
131 | 131 | ||
132 | macro with_args($i:ident) { | ||
133 | $i | ||
134 | } | ||
135 | |||
136 | macro without_args { | ||
137 | ($i:ident) => { | ||
138 | $i | ||
139 | } | ||
140 | } | ||
141 | |||
132 | // comment | 142 | // comment |
133 | fn main() { | 143 | fn main() { |
134 | println!("Hello, {}!", 92); | 144 | println!("Hello, {}!", 92); |