zig: Account for doctests in outline (#19776)

zig has a feature called
[doctests](https://ziglang.org/documentation/master/#Doctests) where
instead of providing a string as the name of a test you use an
identifier so that the test is "tied" to it and can be used in
documentation. this wasnt accounted for so any tests using this were
unnamed in the outline

Release Notes:

- N/A
This commit is contained in:
xdBronch 2024-10-28 10:49:40 -04:00 committed by GitHub
parent 6686f66949
commit ff29a34298
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,6 +19,9 @@
(
TestDecl (
"test" @context
(STRINGLITERALSINGLE)? @name
[
(STRINGLITERALSINGLE)
(IDENTIFIER)
]? @name
)
) @item