Skip to content

Commit 69722ca

Browse files
committed
feat(zig): include .zig/.zon in default scan + CHANGELOG entry
Adds **/*.zig and **/*.zon to DEFAULT_CONFIG.include so the CLI picks up Zig sources without manual config. Documents the new language support and the comptime-type limitation in CHANGELOG. https://claude.ai/code/session_017AQjdPam3enwct9vFi4G1S
1 parent 41b1706 commit 69722ca

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,22 @@ a [GitHub Release](https://github.com/colbymchenry/codegraph/releases) tagged
77
This project follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
88
and adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
99

10+
## [Unreleased] - 2026-05-16
11+
12+
### Added
13+
- Zig language support (Zig 0.16+). Indexes `.zig` and `.zon` files using
14+
`tree-sitter-zig`. Extracts structs and their methods, enums and members,
15+
error sets (modelled as enums), `@import` calls (as `import` nodes with
16+
`imports` references), `pub` visibility, plain constants/variables, and
17+
`test "..." { ... }` blocks as functions.
18+
19+
### Known limitations
20+
- Comptime-generated types such as
21+
`fn Physics(comptime R: type) type { return struct { ... }; }`
22+
are not resolvable at the tree-sitter level — full type inference would be
23+
required. Methods defined on such types are not extracted. This is
24+
documented at the top of `src/extraction/languages/zig.ts`.
25+
1026
## [0.7.6] - 2026-05-13
1127

1228
### Fixed

src/types.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,9 @@ export const DEFAULT_CONFIG: CodeGraphConfig = {
546546
// Scala
547547
'**/*.scala',
548548
'**/*.sc',
549+
// Zig
550+
'**/*.zig',
551+
'**/*.zon',
549552
],
550553
exclude: [
551554
// Version control

0 commit comments

Comments
 (0)