From 08d0d18b89942de376753e3bf45e3d3d6bc2d33f Mon Sep 17 00:00:00 2001 From: Ivar Fatland Date: Thu, 15 Oct 2026 19:19:31 +0200 Subject: [PATCH] support file level structs in zig --- ctags/.config/ctags/zig.ctags | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctags/.config/ctags/zig.ctags b/ctags/.config/ctags/zig.ctags index cbcb1e7..333cbc4 100644 --- a/ctags/.config/ctags/zig.ctags +++ b/ctags/.config/ctags/zig.ctags @@ -7,7 +7,7 @@ --kinddef-zig=v,field,fields --regex-zig=/^(export +)?(pub +)?(inline +)?fn +([a-zA-Z0-9_]+)/\4/f/{exclusive} ---regex-zig=/^(export +)?(pub +)?[\t ]*const +([a-zA-Z0-9_]+) = (struct|enum|union)/\3/t/{exclusive}{scope=push} +--regex-zig=/^(export +)?(pub +)?[\t ]*const +([a-zA-Z0-9_]+) = (@This\(\)|struct|enum|union)/\3/t/{exclusive}{scope=push} --regex-zig=/^}///{exclusive}{scope=pop}{placeholder} --regex-zig=/^[\t ]+(pub +)?(inline +)?fn +([a-zA-Z0-9_]+)/\3/m/{exclusive}{scope=ref} --regex-zig=/^(export +)?pub +const +([a-zA-Z0-9_]+)(:.*)? = .*/\2/v/{exclusive}