Eric Bower
·
2026-09-08
1--recurse=yes
2--tag-relative=yes
3--pattern-length-limit=0
4--fields=+Sn
5--exclude=.git
6--exclude=.jj
7--exclude=.zig-cache
8--exclude=zig-pkg
9--exclude=zig-out
10--exclude=node_modules
11--exclude=__pycache__
12--exclude=.mypy_cache
13--exclude=.pytest_cache
14--exclude=.ruff_cache
15--exclude=.venv
16--exclude=target
17
18# Zig language definition
19--langdef=Zig
20--map-Zig=.zig
21--kinddef-Zig=f,function,functions
22--kinddef-Zig=t,type,types
23--kinddef-Zig=c,const,constants
24--kinddef-Zig=v,variable,variables
25--kinddef-Zig=e,error,errors
26
27# Functions & Methods
28--regex-Zig=/(pub\s+)?(inline\s+|export\s+|extern\s+)?fn\s+([a-zA-Z0-9_]+)/\3/f/p
29
30# Types: structs, enums, unions, opaques
31--regex-Zig=/(pub\s+)?const\s+([a-zA-Z0-9_]+)\s*=\s*(struct|enum|union|opaque)/\2/t/p
32
33# Error sets
34--regex-Zig=/(pub\s+)?const\s+([a-zA-Z0-9_]+)\s*=\s*error\b/\2/e/p
35
36# Exclude @import statements and discard variables (_)
37--regex-Zig=/(pub\s+)?const\s+[a-zA-Z0-9_]+\s*=\s*@import\b/{_}/c/{placeholder}px
38--regex-Zig=/(pub\s+)?const\s+_\s*=/{_}/c/{placeholder}px
39--regex-Zig=/(pub\s+)?var\s+_\s*=/{_}/v/{placeholder}px
40
41# Constants & Variables
42--regex-Zig=/(pub\s+)?const\s+([a-zA-Z0-9_]+)/\2/c/p
43--regex-Zig=/(pub\s+)?var\s+([a-zA-Z0-9_]+)/\2/v/p