From ff29a34298614ef65fa5e5cdcab0356e05ecd472 Mon Sep 17 00:00:00 2001 From: xdBronch <51252236+xdBronch@users.noreply.github.com> Date: Mon, 28 Oct 2024 10:49:40 -0400 Subject: [PATCH] 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 --- extensions/zig/languages/zig/outline.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/extensions/zig/languages/zig/outline.scm b/extensions/zig/languages/zig/outline.scm index d87cff2058..7ae683a876 100644 --- a/extensions/zig/languages/zig/outline.scm +++ b/extensions/zig/languages/zig/outline.scm @@ -19,6 +19,9 @@ ( TestDecl ( "test" @context - (STRINGLITERALSINGLE)? @name + [ + (STRINGLITERALSINGLE) + (IDENTIFIER) + ]? @name ) ) @item