diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-02-11 19:25:26 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-02-11 19:25:26 +0000 |
commit | db6d214411505de6534fce183e9bea8109bc5283 (patch) | |
tree | ca0c8d13f9723a4d54feec9e3359c2e5461712b3 /crates/ra_ide_api/src/syntax_highlighting.rs | |
parent | a78142cc648cd0c95dcaabc598d614f0edc24eb6 (diff) | |
parent | 0d060b073ce965511e3c794c4b6e70f69d14d2ff (diff) |
Merge #793
793: remove hard-coded query-group macro r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide_api/src/syntax_highlighting.rs')
-rw-r--r-- | crates/ra_ide_api/src/syntax_highlighting.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/crates/ra_ide_api/src/syntax_highlighting.rs b/crates/ra_ide_api/src/syntax_highlighting.rs index a435fe56e..345b6653d 100644 --- a/crates/ra_ide_api/src/syntax_highlighting.rs +++ b/crates/ra_ide_api/src/syntax_highlighting.rs | |||
@@ -41,19 +41,4 @@ mod tests { | |||
41 | let highlights = analysis.highlight(file_id).unwrap(); | 41 | let highlights = analysis.highlight(file_id).unwrap(); |
42 | assert_debug_snapshot_matches!("highlights_code_inside_macros", &highlights); | 42 | assert_debug_snapshot_matches!("highlights_code_inside_macros", &highlights); |
43 | } | 43 | } |
44 | |||
45 | // FIXME: this test is not really necessary: artifact of the inital hacky | ||
46 | // macros implementation. | ||
47 | #[test] | ||
48 | fn highlight_query_group_macro() { | ||
49 | let (analysis, file_id) = single_file( | ||
50 | " | ||
51 | salsa::query_group! { | ||
52 | pub trait HirDatabase: SyntaxDatabase {} | ||
53 | } | ||
54 | ", | ||
55 | ); | ||
56 | let highlights = analysis.highlight(file_id).unwrap(); | ||
57 | assert_debug_snapshot_matches!("highlight_query_group_macro", &highlights); | ||
58 | } | ||
59 | } | 44 | } |