From 63bbc23e370c222997e9898b39724bca4fd83941 Mon Sep 17 00:00:00 2001 From: Guoliang Chen Date: Thu, 3 Sep 2026 03:46:24 -0700 Subject: [PATCH] =?UTF-8?q?Release=200.35.0=20=E2=80=94=20format=20fences?= =?UTF-8?q?=20at=20statement=20level=20and=20inside=20class=20bodies?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- CHANGELOG.md | 24 ++++++++++++++++++++++++ Cargo.lock | 16 ++++++++-------- Cargo.toml | 2 +- editors/vscode/CHANGELOG.md | 9 +++++++++ editors/vscode/README.md | 7 ++++++- editors/vscode/package.json | 2 +- 6 files changed, 49 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c597174..cb4c8b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,30 @@ 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.35.0 — 2026-09-02 + +### Format fences reach statements and class bodies + +`// verilog_format: off` / `// lucisv: off` (and the `lucisv:` spelling) +now protect statements inside `begin … end`, `fork … join`, function +and task bodies and `always`/`initial`/`final` blocks, and items inside +a class body — not only items at module scope. A fenced region is +copied byte for byte, keeps its own indentation, and is a fixed point +under a second pass; an unmatched `off` runs to the end of its own +list. `--lines` range formatting honours a fenced statement inside the +selected range. Four opentitan files that already carried fences inside +functions and class bodies now keep those bytes. + +One rule is applied uniformly: a fence must start its line (whitespace +or a finished block comment may precede it). A fence written after code +on the same line — `module m; // lucisv: off` — is an ordinary comment, +as the fence documentation has said since the feature shipped; it used +to open a region at module scope by accident. + +Not yet fenceable, with reasons in the feature README: port lists, +case-item label lists, same-line fences, and a property's local +declarations. + ## 0.34.0 — 2026-09-02 ### Rename tells you what it could not reach diff --git a/Cargo.lock b/Cargo.lock index 68df27e..c41d8e8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -97,7 +97,7 @@ dependencies = [ [[package]] name = "lucisv" -version = "0.34.0" +version = "0.35.0" dependencies = [ "lucisv_core", "rayon", @@ -108,11 +108,11 @@ dependencies = [ [[package]] name = "lucisv_core" -version = "0.34.0" +version = "0.35.0" [[package]] name = "lucisv_server" -version = "0.34.0" +version = "0.35.0" dependencies = [ "lsp-server", "lsp-types", @@ -248,14 +248,14 @@ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" [[package]] name = "vlog_formatter" -version = "0.34.0" +version = "0.35.0" dependencies = [ "vlog_parser", ] [[package]] name = "vlog_linter" -version = "0.34.0" +version = "0.35.0" dependencies = [ "vlog_formatter", "vlog_parser", @@ -264,11 +264,11 @@ dependencies = [ [[package]] name = "vlog_parser" -version = "0.34.0" +version = "0.35.0" [[package]] name = "vlog_refactor" -version = "0.34.0" +version = "0.35.0" dependencies = [ "vlog_parser", "vlog_semantic", @@ -276,7 +276,7 @@ dependencies = [ [[package]] name = "vlog_semantic" -version = "0.34.0" +version = "0.35.0" dependencies = [ "vlog_parser", ] diff --git a/Cargo.toml b/Cargo.toml index 0f409c8..4ddabe2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ members = [ ] [workspace.package] -version = "0.34.0" +version = "0.35.0" authors = ["Guoliang Chen"] edition = "2021" license = "MIT" diff --git a/editors/vscode/CHANGELOG.md b/editors/vscode/CHANGELOG.md index 219f184..faa6791 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.35.0 — 2026-09-02 + +- **Format fences work inside procedural blocks and classes.** + `// lucisv: off` … `// lucisv: on` now protects statements inside + `begin … end`, `fork … join`, function and task bodies and + `always`/`initial`/`final`, and items inside a class body — byte for + byte, including with range formatting. A fence must start its line; + one written after code on the same line is a plain comment. + ## 0.34.0 — 2026-09-02 - **Rename warns about macro arguments it could not edit**, naming every diff --git a/editors/vscode/README.md b/editors/vscode/README.md index f86dafd..29e5c64 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.34.0**. Its platform packages include both +The current release is **0.35.0**. Its platform packages include both `lucisv-server` and the `lucisv` command-line tool: | Package target | Machines | @@ -326,6 +326,11 @@ Every nesting color is a proper VS Code theme color: } ``` +## Release 0.35.0 highlights + +Version 0.35.0 lets format fences protect statements inside procedural +blocks, function and task bodies, and items inside class bodies. + ## Release 0.34.0 highlights Version 0.34.0 makes rename name the macro arguments it cannot edit, diff --git a/editors/vscode/package.json b/editors/vscode/package.json index 6137cb0..a8a0c42 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.34.0", + "version": "0.35.0", "publisher": "guoliangchen", "author": "Guoliang Chen", "license": "MIT",