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.  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:
parent
8317c9215a
commit
68e670bf54
1 changed files with 2 additions and 0 deletions
|
@ -18,6 +18,8 @@
|
|||
.
|
||||
(attribute_item) *
|
||||
.
|
||||
[(line_comment) (block_comment)] *
|
||||
.
|
||||
(function_item
|
||||
name: (_) @run
|
||||
body: _
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue