• v0.65.0
    release / build-and-publish (push) Successful in 3m40s
    ci / corpus (push) Successful in 21s
    ci / checks (push) Failing after 10s

    lucio released this 2026-11-19 03:03:41 -08:00 | 31 commits to master since this release

    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.
    Downloads