From b01a6fbdeaeb44698aa03ad04a48cab307b5ccf8 Mon Sep 17 00:00:00 2001 From: Hyeondong Lee Date: Sat, 8 Nov 2025 17:42:33 +0900 Subject: [PATCH] Fix missing highlight for macro_invocation bang (#41572) (Not sure if this was left out on purpose, but this makes things feel a bit more consistent since [VS Code parses bang mark as part of the macro name](https://github.com/microsoft/vscode/blob/main/extensions/rust/syntaxes/rust.tmLanguage.json#L889-L905)) Release Notes: - Added the missing highlight for the bang mark in macro invocations. | **Before** | **After** | | :---: | :---: | | before | fixed | --- crates/languages/src/rust/highlights.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/languages/src/rust/highlights.scm b/crates/languages/src/rust/highlights.scm index 36f638e825b117673bd88b3abaf75d0fc433f4e7..c541b5121784e3edb86f6d2e97b0666204d9f475 100644 --- a/crates/languages/src/rust/highlights.scm +++ b/crates/languages/src/rust/highlights.scm @@ -41,6 +41,9 @@ name: (identifier) @function.special) ]) +(macro_invocation + "!" @function.special) + (macro_definition name: (identifier) @function.special.definition)