The two §11 parser skips: rival unit headers across an ifdef/else split as one verbatim unit, a net delay accepted after the type
TODO §38 (docs/features/parser-skips). Closes the jtag_if.sv and
SimDTM.sv skips from the §11 sweep.
38.1 `Parser::at_rival_header`: in a module/interface/program body, a
continuing directive at the unit's own entry level followed by the same
keyword and name is a header written twice across the arms, not a
nested unit. The error routes into the existing conditional split
(`at_split_conditional` now fires on a rival as well as an open
bracket; `scan_split_extent` runs to the unit's real closer, counting
nested units of the same kind), so the whole unit is one Verbatim item
in both modes. jtag_if.sv now formats (body verbatim, the standing
directive-split trade).
38.2 `DataDecl::delay: Option<NetDelay { expr, after_type }>`: a net
delay is accepted before or after the type (IEEE 1800 §6.7 puts it
after), never both, and printed where it was written. SimDTM.sv now
formats; its four `#0.1` lines come back byte-identical.
Byte-identity vs 0.41.0: 0 of 820 corpus files differ; over 2 554
opentitan files exactly the two named files change outcome.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
1 parent
97aa2fefd8
commit
d5abf81563
13 files changed
+1557
-38
No files matched your search
@@ -300,6 +300,15 @@ trigger is not too loose.
|
||||
`Fmt::raw_text`'s `crosses_line_inside_string` path emits a `Doc::Text`
|
||||
with embedded newlines and leaves the printer's column stale. Pre-existing
|
||||
(assertions round), no corruption. See Handshakes → Consumed.
|
||||
- [x] **Two of the "not done, deliberately" items above were delivered by
|
||||
TODO §38.1** (2026-09-04, `docs/features/parser-skips/README.md`): a
|
||||
split whose shared tail ends in a **keyword** rather than a `;`, and the
|
||||
one **bracketless** shape that is not indistinguishable from a missing
|
||||
terminator — a unit header the next arm writes again (`jtag_if.sv`).
|
||||
`at_split_conditional`'s fourth condition now reads "bracket open **or**
|
||||
rival header", and `scan_split_extent` takes the unit's closing keyword.
|
||||
The rest of the bracketless family stays refused, and the inside of a
|
||||
split region is still byte-for-byte.
|
||||
|
||||
## Work log
|
||||
|
||||
|
||||
Reference in new issue
Block a user