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 13:51:23 +01:00 committed by GitHub
parent 8317c9215a
commit 68e670bf54
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,6 +18,8 @@
.
(attribute_item) *
.
[(line_comment) (block_comment)] *
.
(function_item
name: (_) @run
body: _