Fix rust runnable is not detected if comment is after #[test] attribute (#22823)

Closes #22798

This fixes that we didn't detect the Rust runnable when there was a
comment after the `#[test]` attribute.

![Screenshot 2025-01-08 at 13 22
59](https://github.com/user-attachments/assets/bd6a7ae0-93d4-4f93-9d0d-11453acb2032)


Release Notes:

- Fixed Rust runnable not detected when comment is after `#[test]`
attribute.

---------

Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
This commit is contained in:
Remco Smits
2025-01-08 12:51:23 +00:00
committed by GitHub
co-authored by Piotr Osiewicz
parent 8317c9215a
commit 68e670bf54
+2
View File
@@ -18,6 +18,8 @@
.
(attribute_item) *
.
[(line_comment) (block_comment)] *
.
(function_item
name: (_) @run
body: _