Repository navigation
Description
Summary
Follow-up to #1419 (fix in flight, PR pending). #1419's fix (extern/export calling-convention
prefix + @"..."-quoted identifier support) correctly resolves its other two named repro cases
(zig/Compilation.zig's @"resume", bun/napi.zig's quoted V8-mangled symbol names -- both now
found), but its PRIMARY repro case does not improve:
// language-crucible/data/zig/zig/main.zig:5662
extern "c" fn ZigClang_main(argc: c_int, argv: [*:null]?[*:0]u8) c_int;ZigClang_main (and ZigClangIsLLVMUsingSeparateLibcxx, ZigLlvmAr_main in the same file) are
still not found after the #1419 fix, even though:
- The fixed regex correctly matches this exact line in isolation (confirmed via a standalone
minimal-repro file containing just this line -- matches cleanly). - A
git stashA/B test against the realmain.zigfile shows GitGalaxy finds exactly 18
functions in this file both before and after the zig func_start misses extern/export calling-convention prefix and @"..."-quoted identifier names #1419 fix -- completely unaffected by the
regex/detector.py changes that fixed the other two repro cases.
This means whatever is suppressing these specific matches in main.zig is a separate,
pre-existing mechanism, not the extern-callconv/quoted-identifier gap #1419 targeted. Candidates
not yet investigated: something about this specific 7529-line file's earlier content interacting
with a shielding/slicing step (comment/string shield exhaustion, a ReDoS-safety early-bailout,
_slice_by_braces losing sync earlier in the file, etc.) -- needs its own root-cause pass, not
guessed at here.
Suggested next step
Bisect main.zig (e.g. binary-search truncated copies of the file, or diff GitGalaxy's raw
function_data output against tree-sitter's per-file function list for just this file) to find
where the pipeline stops finding real functions, rather than assuming it's the same class of bug
as #1419.
Scope note
This only affects func_start/args/class_start name-extraction accuracy (the extraction-
gauntlet pillar from epic #813), not GitGalaxy's risk-scoring rules, which are unaffected.
Activity
fix(zig): apostrophes in `\\`-continuation help strings blank real fu…