crates/languages/src/rust/runnables.scm 🔗
@@ -18,6 +18,8 @@
.
(attribute_item) *
.
+ [(line_comment) (block_comment)] *
+ .
(function_item
name: (_) @run
body: _
Remco Smits and Piotr Osiewicz created
Closes #22798
This fixes that we didn't detect the Rust runnable when there was a
comment after the `#[test]` attribute.

Release Notes:
- Fixed Rust runnable not detected when comment is after `#[test]`
attribute.
---------
Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
crates/languages/src/rust/runnables.scm | 2 ++
1 file changed, 2 insertions(+)
@@ -18,6 +18,8 @@
.
(attribute_item) *
.
+ [(line_comment) (block_comment)] *
+ .
(function_item
name: (_) @run
body: _