• v0.31.0
    ci / checks (push) Successful in 57s
    ci / corpus (push) Successful in 26s
    release / build-and-publish (push) Successful in 5m49s
    Stable

    lucio released this 2026-09-02 11:32:16 -07:00 | 219 commits to master since this release

    Comments are never dropped — now at every gap

    A comment written between two tokens that no AST node owned was never
    deleted, but it was printed one node later, and the safety net refused
    the whole file for it (exit 2, no output). Three rounds had filed their
    leftovers (52 covergroup gaps, 41 fragment gaps, 40 constraint gaps) and
    plain RTL had never been measured. This release gives every such gap an
    owner: about seventy named comment slots across expressions (q[/*c*/ i],
    pkg /*c*/ ::name, x /*c*/ inside {…}, casts, unary/postfix operators),
    statements (if/case/for/foreach/do…while headers, @/#
    timing, the gap before every ;, block and generate labels) and
    declarations (qualifier runs like pure /*c*/ static, function/task
    headers and ports, module/package/class headers, typedefs, enums,
    structs, declarators, port lists, connections, instantiations).

    Four exhaustive gap fuzzers — a /*C*/ in every inter-token gap of
    fixture sets for covergroups (329 gaps), fragments (153), constraints
    (395) and ordinary RTL (352) — all format and re-format identically, and
    are the regression gate from here on. The formatter's output for every
    comment-free construct is unchanged: all 860 corpus files and 3 975
    opentitan files are byte-identical to 0.30.0. verify.rs is untouched;
    ten new attack pairs assert a comment moved across any newly slotted
    token is still refused.

    • Escaped names inside scoped names (\my-pkg ::\state-t as a
      type, an instantiated module, a bind target) now keep their
      terminating space instead of being refused.

    Editor

    • Go to definition on a macro use (`WIDTH, `uvm_info)
      jumps to the `define — the file's own definition first, otherwise
      every workspace candidate the include graph cannot rule out; nothing
      for a macro nothing defines.
    • A cast's type is a reference. state_t'(0) and pkg::t'(x) now
      light up find-all-references, go-to-type-definition and rename of
      the typedef (FACTS_FORMAT 13 → 14: the index rebuilds once).
    • Rename warns about what it could not finish. A u_x.sig whose
      module is indexed nowhere is left unchanged and now named — one
      line per file and unit — instead of silently skipped.
    Downloads