diff --git a/CHANGELOG.md b/CHANGELOG.md index 765354f..3460c31 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,41 @@ All notable changes to lucisv are recorded here. Versions follow [semantic versioning](https://semver.org/); until 1.0 the CLI's exit codes (see `README.md`) are the only frozen contract. +## 0.29.0 — 2026-09-02 + +Fragment mode, and `` `define`` continuation. + +The gap analysis had this one wrong in an interesting way: class-body +and module-item `` `include`` fragments already parsed, because the +file-scope item loop *is* the class-item loop. What did not parse were +three narrower shapes — a bare statement list, an enum-member list +(riscv-dv's `CUSTOM_1,` file, included between enum members), a +covergroup-item list — and all three failed at one call site. They are +now `SourceFile::fragment`, detected by a whole-file rule that cannot +misfire on a valid file: the first structural item failed (directives, +macros and stray `;` do not count, and a tolerant parse that quietly +recorded a diagnostic counts as failed — an existing parity test +caught `if … else` reading as a generate-if to one parser and a +statement to the other), the file does not open with a design-unit +keyword, and a shape consumes the file to its end, tried +narrowest-first because the wider grammars mis-read the narrower. A +fragment formats at indent zero through the existing printers, its +declarations bind, and its enum variants are deliberately *not* +exported (a package that includes the fragment is the real home of +`CUSTOM_1`; resolving it elsewhere would name something that does not +exist). + +The other opentitan `.svh` that would not parse was never a fragment +problem: a `` `define`` whose formal-argument list spans two lines with +no backslash, which every tool accepts. The lexer now continues such a +directive until the list closes. + +Opentitan: 12 → 10 failing files, exactly the two predicted, nothing +else moved. Corpus baseline 813 → 814 of 820. Comment-gap fuzzer: +every remaining failing slot proven to fail identically outside a +fragment (§2.9-22). Formatter output unchanged for every file that +parsed before. + ## 0.28.0 — 2026-09-02 Covergroup bodies — round 2 of coverage_gaps C1, closing it. diff --git a/Cargo.lock b/Cargo.lock index 524df01..c436f67 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -97,7 +97,7 @@ dependencies = [ [[package]] name = "lucisv" -version = "0.28.0" +version = "0.29.0" dependencies = [ "lucisv_core", "rayon", @@ -108,11 +108,11 @@ dependencies = [ [[package]] name = "lucisv_core" -version = "0.28.0" +version = "0.29.0" [[package]] name = "lucisv_server" -version = "0.28.0" +version = "0.29.0" dependencies = [ "lsp-server", "lsp-types", @@ -248,14 +248,14 @@ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" [[package]] name = "vlog_formatter" -version = "0.28.0" +version = "0.29.0" dependencies = [ "vlog_parser", ] [[package]] name = "vlog_linter" -version = "0.28.0" +version = "0.29.0" dependencies = [ "vlog_formatter", "vlog_parser", @@ -264,11 +264,11 @@ dependencies = [ [[package]] name = "vlog_parser" -version = "0.28.0" +version = "0.29.0" [[package]] name = "vlog_refactor" -version = "0.28.0" +version = "0.29.0" dependencies = [ "vlog_parser", "vlog_semantic", @@ -276,7 +276,7 @@ dependencies = [ [[package]] name = "vlog_semantic" -version = "0.28.0" +version = "0.29.0" dependencies = [ "vlog_parser", ] diff --git a/Cargo.toml b/Cargo.toml index 3b0694a..c6aef47 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ members = [ ] [workspace.package] -version = "0.28.0" +version = "0.29.0" authors = ["Guoliang Chen"] edition = "2021" license = "MIT" diff --git a/editors/vscode/CHANGELOG.md b/editors/vscode/CHANGELOG.md index d41342b..d3dc1e0 100644 --- a/editors/vscode/CHANGELOG.md +++ b/editors/vscode/CHANGELOG.md @@ -5,6 +5,15 @@ for you. The extension and its bundled language server share one version number; the full engineering notes live in the [project changelog](https://git.luci.ooo/lucio/lucisv/src/branch/master/CHANGELOG.md). +## 0.29.0 — 2026-09-02 + +- **Include fragments parse**: a `.svh` holding a bare statement list, + an enum-member list or covergroup items — the UVM `` `include`` + pieces — now formats, gets diagnostics and hover, instead of one + parse error and nothing else. +- A `` `define`` whose argument list continues on the next line without + a backslash is accepted, as by every simulator. + ## 0.28.0 — 2026-09-02 - **Covergroups are real code now**: `covergroup … endgroup` bodies — diff --git a/editors/vscode/README.md b/editors/vscode/README.md index 18d9f9f..ee12b70 100644 --- a/editors/vscode/README.md +++ b/editors/vscode/README.md @@ -30,7 +30,7 @@ Install **lucisv — Verilog/SystemVerilog** from the VS Code Extensions view, then open a Verilog or SystemVerilog file. There is no separate server or CLI setup. -The current release is **0.28.0**. Its platform packages include both +The current release is **0.29.0**. Its platform packages include both `lucisv-server` and the `lucisv` command-line tool: | Package target | Machines | @@ -326,6 +326,13 @@ Every nesting color is a proper VS Code theme color: } ``` +## Release 0.29.0 highlights + +Version 0.29.0 parses include fragments — a bare statement list, an +enum-member list or a covergroup-item list in its own `.svh` — and +accepts a `` `define`` whose argument list spans lines without a +backslash, the way real tools do. + ## Release 0.28.0 highlights Version 0.28.0 completes the coverage grammar: `covergroup … endgroup` diff --git a/editors/vscode/package.json b/editors/vscode/package.json index 9859b63..d7a3928 100644 --- a/editors/vscode/package.json +++ b/editors/vscode/package.json @@ -2,7 +2,7 @@ "name": "lucisv", "displayName": "lucisv — Verilog/SystemVerilog", "description": "Fast Verilog/SystemVerilog formatting, linting, navigation, refactoring, semantic highlighting and RTL design intelligence.", - "version": "0.28.0", + "version": "0.29.0", "publisher": "guoliangchen", "author": "Guoliang Chen", "license": "MIT",