Commit c8edaba
committed
feat: add Zig language support with SCIP indexing
Merge PR #27 from jedisct1 to add comprehensive Zig language support:
Core Changes:
- Add ZigStrategy with complete SCIP-compliant indexing (738 lines)
- Support both Tree-sitter and regex parsing approaches
- Register Zig strategy in SCIPIndexerFactory with priority 95
- Add .zig and .zon file extension support in constants
- Update README.md to document Zig language support
Test Coverage:
- Add complete Zig test project in test/sample-projects/zig/
- Include build.zig, main.zig, root.zig examples
- Cover major Zig language constructs (functions, structs, enums, tests)
Architecture Consistency:
- Maintain clean SCIP strategy architecture
- Remove redundant analyzers system components during merge
- Keep focus on unified SCIP-based indexing approach
This implementation provides full Zig language support following the same
high-quality SCIP standards as other supported languages.File tree
9 files changed
+1239
-211
lines changed- src/code_index_mcp
- scip
- strategies
- test/sample-projects/zig/code-index-example
- src
9 files changed
+1239
-211
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| |||
117 | 119 | | |
118 | 120 | | |
119 | 121 | | |
| 122 | + | |
| 123 | + | |
120 | 124 | | |
121 | 125 | | |
122 | 126 | | |
| |||
0 commit comments