Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

zig: Account for doctests in outline (#19776)

xdBronchff29a3429861
diff --git a/extensions/zig/languages/zig/outline.scm b/extensions/zig/languages/zig/outline.scm
index d87cff2058d..7ae683a876e 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