Files
lucisv/docs
lucioandClaude Fable 5 f280e51169 vfmt-server: begin/end pair engine, documentHighlight, missing-end warnings
New pairs.rs: a stack matcher over the token stream for begin/end and 16
relative pairs, with guards for every no-body construct that spells an
opener keyword (extern/DPI prototypes, typedef class, virtual interface,
assert property, covergroup with function sample, ...). Non-cascading
mismatch recovery makes one missing end point at the exact unclosed begin.

Feeds textDocument/documentHighlight (cursor on begin highlights its
matching end) and WARNING diagnostics for unmatched openers/closers —
gated on the parse already failing, so macro/ifdef keyword imbalance in
working code can never warn.

Corpus sweep: 840 clean-parsing files, 11,062 matched pairs, 0 false
positives (reproduced independently by QA).

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-24 02:08:00 -07:00
..