From 895b4148a5ee24a19e43e145a2eabed3e35f52f0 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Thu, 29 Aug 2024 14:21:26 +0300 Subject: [PATCH] Revert "Improve Rust highlight queries (#16747)" (#17073) --- crates/languages/src/rust/highlights.scm | 5 ----- crates/languages/src/rust/injections.scm | 8 -------- 2 files changed, 13 deletions(-) diff --git a/crates/languages/src/rust/highlights.scm b/crates/languages/src/rust/highlights.scm index 0c3aa7efc7..44fd61d871 100644 --- a/crates/languages/src/rust/highlights.scm +++ b/crates/languages/src/rust/highlights.scm @@ -184,8 +184,3 @@ ] @operator (lifetime) @lifetime - -(parameter (identifier) @variable.parameter) - -(attribute_item) @attribute -(inner_attribute_item) @attribute diff --git a/crates/languages/src/rust/injections.scm b/crates/languages/src/rust/injections.scm index 39042e92c6..0ce91f2287 100644 --- a/crates/languages/src/rust/injections.scm +++ b/crates/languages/src/rust/injections.scm @@ -5,11 +5,3 @@ (macro_rule (token_tree) @content (#set! "language" "rust")) - -(block_comment - (doc_comment) @content - (#set! "language" "markdown")) - -(line_comment - (doc_comment) @content - (#set! "language" "markdown"))