• v0.65.3
    release / build-and-publish (push) Successful in 5m28s
    Stable

    gitea-actions released this 2026-11-19 10:29:27 -08:00 | 11 commits to master since this release

    Comment keywords, and the brackets in comments explained

    (docs/features/comment-highlighting; TODO §71.8.)

    • TODO, FIXME, FIX_ME and TBD stand out inside comments. In //
      and /* */ comments they are drawn bold in a new theme colour,
      lucisv.commentKeyword — as whole words only (TODO_reg and $TODO are
      left alone), and never in strings or code.
    • Your own words too. lucisv.commentKeywords.custom adds words that are
      highlighted the same way and only in comments (matched literally, up to 50
      words of 1–40 characters); lucisv.commentKeywords.builtIn: false turns the
      four built-ins off, and lucisv.commentKeywords.caseSensitive: false
      ignores case. Every change applies at once, with no reload.
    • It follows what the editor draws as a comment. The extension finds
      comments with the grammar's own comment and string rules; against VS Code's
      real tokenizer that agreed on every one of the 1 185 823 lines of
      OpenTitan's hw tree. It is client-side, so it paints while the language
      server is still starting.
    • Cheap on big files. Only the lines on screen (and 50 either side) are
      searched for words; an edit above the screen re-reads the lines from the
      edit down to it (7.9 ms at worst on a 100 000-line file). A file VS Code
      itself does not tokenize (over 20 MiB or 300 000 lines) is not painted.
    • Brackets coloured inside comments: explained, not changed. The [] of
      a signal[] that sometimes lights up in a comment is VS Code's bracket-pair
      colourisation, which ignores comments until it has finished tokenizing a
      newly opened file in the background and then removes the colour itself.
      lucisv's grammar and semantic tokens were measured to colour nothing inside
      a comment (309 OpenTitan files, and the large-file path). An extension
      cannot change that behaviour short of switching bracket colours off for the
      whole language, code included — which stays your choice
      (editor.bracketPairColorization.enabled, or colorizedBracketPairs
      under [systemverilog]).
    • Not yet seen in a running editor by a human: the tests are headless.
    Downloads