diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e9218b..f5c350e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,38 @@ 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.65.0 — 2026-11-19 + +### Module instantiation syntax highlighting + +(`docs/features/instantiation-highlighting`; TODO §69.) + +- **Every part of a module instantiation gets its own colour.** Module names, + instance names, `.PARAM` overrides, `.port` names and connected signals used + to collapse to the same default foreground colour whenever the instantiated + module lived in another file or a theme left bare semantic tokens unstyled. + The language server now layers AST-guided semantic token overrides (and + cross-file `ExternalResolutions` lookups) over the existing 14-type legend: + - **Module / interface names** (`uart_core`, `pkg::uart_core` with `pkg` as + `namespace`, and lone `bind` targets) highlight as `class`. + - **`#` and parameters share one colour** (`parameter`), distinct from `()`: + the `#` introducing a module, class, `extends`, instantiation or + parameterized-type parameter list, every `.PARAM` override (`.` and name), + and parameter values inside `#(...)` all carry `parameter`. Delay `#` + tokens (`#5`, `#(1:2:3)`) are left unemitted. + - **Instance names** (`u_uart`, gate instances, `bind` instance lists, and + hierarchical uses like `u_uart.sig`) highlight as `function`. + - **Port names** (`.clk_i` dot and name, implicit `.rst_ni`, and wildcard + `.*`), including unfinished entries being typed, highlight as `property`. + - **Port connections** (`clk`, `data_q`) stay `variable` so signals keep one + consistent colour across the file. +- **VS Code: semantic highlighting on by default with theme-safe scope maps.** + `configurationDefaults` enables `editor.semanticHighlighting.enabled` for + `[verilog]` and `[systemverilog]` (user settings still win), and + `contributes.semanticTokenScopes` maps the language's semantic token types to + distinct TextMate scopes so every role renders in colour across Dark+, Dark + Modern, Light+, GitHub Dark, One Dark Pro and Visual Studio Dark. + ## 0.64.0 — 2026-11-17 ### Completion that keeps up with typing diff --git a/Cargo.lock b/Cargo.lock index 56fc39f..206e325 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -97,7 +97,7 @@ dependencies = [ [[package]] name = "lucisv" -version = "0.64.0" +version = "0.65.0" dependencies = [ "lucisv_core", "rayon", @@ -108,11 +108,11 @@ dependencies = [ [[package]] name = "lucisv_core" -version = "0.64.0" +version = "0.65.0" [[package]] name = "lucisv_mcp" -version = "0.64.0" +version = "0.65.0" dependencies = [ "lucisv_core", "serde", @@ -126,7 +126,7 @@ dependencies = [ [[package]] name = "lucisv_server" -version = "0.64.0" +version = "0.65.0" dependencies = [ "lsp-server", "lsp-types", @@ -262,14 +262,14 @@ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" [[package]] name = "vlog_formatter" -version = "0.64.0" +version = "0.65.0" dependencies = [ "vlog_parser", ] [[package]] name = "vlog_linter" -version = "0.64.0" +version = "0.65.0" dependencies = [ "lucisv_core", "vlog_formatter", @@ -279,11 +279,11 @@ dependencies = [ [[package]] name = "vlog_parser" -version = "0.64.0" +version = "0.65.0" [[package]] name = "vlog_refactor" -version = "0.64.0" +version = "0.65.0" dependencies = [ "vlog_formatter", "vlog_parser", @@ -292,7 +292,7 @@ dependencies = [ [[package]] name = "vlog_semantic" -version = "0.64.0" +version = "0.65.0" dependencies = [ "vlog_parser", ] diff --git a/Cargo.toml b/Cargo.toml index b91e43e..d433769 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ members = [ ] [workspace.package] -version = "0.64.0" +version = "0.65.0" authors = ["Guoliang Chen"] edition = "2021" license = "MIT" diff --git a/editors/vscode/CHANGELOG.md b/editors/vscode/CHANGELOG.md index ae7fa98..48f316a 100644 --- a/editors/vscode/CHANGELOG.md +++ b/editors/vscode/CHANGELOG.md @@ -5,6 +5,19 @@ 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.65.0 — 2026-11-19 + +- **Module instantiations are now colour-coded by role.** Module names + (`class`), instance names (`function`), port names (`.clk_i` and `.*`, + `property`), and connected signals (`variable`) each take a distinct colour + instead of blending together in white. +- **`#` shares the parameter colour**, separate from `()`: the `#` before a + parameter header or override list, `.PARAM` names, and parameter values + highlight together as `parameter`, while `#5` delays stay untouched. +- **Semantic highlighting works out of the box across themes.** The extension + now enables `editor.semanticHighlighting.enabled` by default for Verilog and + SystemVerilog and provides distinct TextMate fallback scopes for every role. + ## 0.64.0 — 2026-11-17 - **`begin` + Enter writes the `end`.** The cursor lands on the indented diff --git a/editors/vscode/README.md b/editors/vscode/README.md index 9a17334..5c5da73 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.64.0**. Its platform packages include +The current release is **0.65.0**. Its platform packages include `lucisv-server`, the `lucisv` command-line tool and `lucisv-mcp` (see [Agents (MCP)](#agents-mcp)): @@ -421,6 +421,14 @@ Every nesting color is a proper VS Code theme color: } ``` +## Release 0.65.0 highlights + +Version 0.65.0 gives module instantiations distinct syntax colours across +themes: module names (`class`), instance names (`function`), port names +(`.port` / `.*`, `property`), and connected signals (`variable`) each stand +out, and parameter-list `#` signs share the `parameter` colour separately from +parentheses. + ## Release 0.64.0 highlights Version 0.64.0 makes typing quicker: `begin` + Enter writes the `end`, diff --git a/editors/vscode/package-lock.json b/editors/vscode/package-lock.json index 116b99e..86fdbf1 100644 --- a/editors/vscode/package-lock.json +++ b/editors/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "lucisv", - "version": "0.64.0", + "version": "0.65.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "lucisv", - "version": "0.64.0", + "version": "0.65.0", "license": "MIT", "dependencies": { "vscode-languageclient": "9.0.1" diff --git a/editors/vscode/package.json b/editors/vscode/package.json index 896a52c..4239764 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.64.0", + "version": "0.65.0", "publisher": "guoliangchen", "author": "Guoliang Chen", "license": "MIT",