From 0d060b073ce965511e3c794c4b6e70f69d14d2ff Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 11 Feb 2019 22:24:39 +0300 Subject: remove hard-coded query-group macro --- .../tests__highlight_query_group_macro.snap | 28 ---------------------- crates/ra_ide_api/src/syntax_highlighting.rs | 15 ------------ 2 files changed, 43 deletions(-) delete mode 100644 crates/ra_ide_api/src/snapshots/tests__highlight_query_group_macro.snap (limited to 'crates/ra_ide_api/src') diff --git a/crates/ra_ide_api/src/snapshots/tests__highlight_query_group_macro.snap b/crates/ra_ide_api/src/snapshots/tests__highlight_query_group_macro.snap deleted file mode 100644 index 0b802ac3d..000000000 --- a/crates/ra_ide_api/src/snapshots/tests__highlight_query_group_macro.snap +++ /dev/null @@ -1,28 +0,0 @@ ---- -created: "2019-02-01T07:52:15.689836752+00:00" -creator: insta@0.5.3 -expression: "&highlights" -source: crates/ra_ide_api/src/syntax_highlighting.rs ---- -[ - HighlightedRange { - range: [20; 32), - tag: "macro" - }, - HighlightedRange { - range: [13; 18), - tag: "text" - }, - HighlightedRange { - range: [51; 54), - tag: "keyword" - }, - HighlightedRange { - range: [55; 60), - tag: "keyword" - }, - HighlightedRange { - range: [61; 72), - tag: "function" - } -] 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 { let highlights = analysis.highlight(file_id).unwrap(); assert_debug_snapshot_matches!("highlights_code_inside_macros", &highlights); } - - // FIXME: this test is not really necessary: artifact of the inital hacky - // macros implementation. - #[test] - fn highlight_query_group_macro() { - let (analysis, file_id) = single_file( - " - salsa::query_group! { - pub trait HirDatabase: SyntaxDatabase {} - } - ", - ); - let highlights = analysis.highlight(file_id).unwrap(); - assert_debug_snapshot_matches!("highlight_query_group_macro", &highlights); - } } -- cgit v1.2.3