-
v0.21.0
Stablereleased this
2026-09-01 15:03:36 -07:00 | 244 commits to master since this releaseNull items:
endgenerate;parses — and everywhere else a stray;may
legally stand.The report was "for loop inside generate fails"; the diagnosis was that
every generate-for spelling — and three published examples — already
parsed, and the failing token was the lone;afterendgenerate.
IEEE 1800-2017 A.1.4 makes that a null item, legal in module,
generate, package, interface, program and class scope and at file
scope; lucisv rejected it in all of them withexpected item. Now
ItemKind::Empty, accepted by one parser branch, laid out where it
was written (glued to the previous line forendgenerate;/end;/
endmodule;/;;, or on its own line), token-preserving and
idempotent both ways.verify.rsuntouched; eight masked-corruption
attack pairs (a dropped;, one moved across a comment, into a
procedural block, between`ifdefarms) all rejected.New lint
empty-item(slang's-Wempty-member): warns on a null
item; its safe fix deletes the;— and the line, when nothing else
stood on it — with a deletion range that structurally cannot swallow a
comment. In the editor, a file that used to show a parse error now
shows a warning with a quick fix and fix all.Formatter output changes only for files that contain a null item;
the 820-file corpus is byte-identical (813/820) and the opentitan
sweep is unchanged file-for-file. Version bumped per the format-cache
rule.Downloads