diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-06-09 14:17:38 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-06-09 14:17:38 +0100 |
commit | 5f592f4f58a6e1e1db0f920af34a2f569b65017c (patch) | |
tree | 00417f2fa52662fd1525b695d2d07642f9c6ba7d /crates/ide/src/syntax_highlighting/tests.rs | |
parent | cc7cfc5d3d7777524a9e8a94da3f5f2dd455fc0a (diff) | |
parent | 3c40b15d625df192eb17c34f15f7dbc23f5284b9 (diff) |
Merge #9191
9191: fix: Don't descend MacroCall TokenTree delimiters r=jonas-schievink a=Veykril
Fixes #9190
Co-authored-by: Lukas Wirth <[email protected]>
Diffstat (limited to 'crates/ide/src/syntax_highlighting/tests.rs')
-rw-r--r-- | crates/ide/src/syntax_highlighting/tests.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/ide/src/syntax_highlighting/tests.rs b/crates/ide/src/syntax_highlighting/tests.rs index 662b53481..6ad2a362a 100644 --- a/crates/ide/src/syntax_highlighting/tests.rs +++ b/crates/ide/src/syntax_highlighting/tests.rs | |||
@@ -122,6 +122,10 @@ def_fn! { | |||
122 | } | 122 | } |
123 | } | 123 | } |
124 | 124 | ||
125 | macro_rules! dont_color_me_braces { | ||
126 | () => {0} | ||
127 | } | ||
128 | |||
125 | macro_rules! noop { | 129 | macro_rules! noop { |
126 | ($expr:expr) => { | 130 | ($expr:expr) => { |
127 | $expr | 131 | $expr |
@@ -145,6 +149,7 @@ macro without_args { | |||
145 | // comment | 149 | // comment |
146 | fn main() { | 150 | fn main() { |
147 | println!("Hello, {}!", 92); | 151 | println!("Hello, {}!", 92); |
152 | dont_color_me_braces!(); | ||
148 | 153 | ||
149 | let mut vec = Vec::new(); | 154 | let mut vec = Vec::new(); |
150 | if true { | 155 | if true { |