Skip to content

Commit e925360

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 c13d5f3 commit e925360

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ and adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1010
## [Unreleased]
1111

1212
### 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.
1318
- **MCP / explore**: `codegraph_explore` source sections now carry line
1419
numbers (cat -n style `<num>\t<code>`, matching the Read tool). This lets
1520
the agent cite `file:line` straight from the explore payload instead of

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)