-
released this
2026-11-19 10:29:27 -08:00 | 11 commits to master since this releaseComment keywords, and the brackets in comments explained
(
docs/features/comment-highlighting; TODO §71.8.)TODO,FIXME,FIX_MEandTBDstand out inside comments. In//
and/* */comments they are drawn bold in a new theme colour,
lucisv.commentKeyword— as whole words only (TODO_regand$TODOare
left alone), and never in strings or code.- Your own words too.
lucisv.commentKeywords.customadds words that are
highlighted the same way and only in comments (matched literally, up to 50
words of 1–40 characters);lucisv.commentKeywords.builtIn: falseturns the
four built-ins off, andlucisv.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'shwtree. 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
asignal[]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, orcolorizedBracketPairs
under[systemverilog]). - Not yet seen in a running editor by a human: the tests are headless.
Downloads