Verilog / SystemVerilog SyntaxA lightweight VS Code extension that provides syntax highlighting for Verilog and SystemVerilog—without a language server, runtime code, or external HDL tools. Features
Requires VS Code 1.75.0 or later. Highlighting colors depend on your active theme. InstallationBuild a VSIX locally using the development instructions below, or download one from this repository's GitHub Releases when a release is available. In VS Code, open the Command Palette, select Extensions: Install from VSIX..., and choose the
Replace the filename with the version you built or downloaded. Open a supported file to enable highlighting; if needed, select Verilog or SystemVerilog from the language mode picker in the status bar. If another extension supplies highlighting for the same languages, disable it for the workspace when checking this extension's behavior. DevelopmentUse Node.js 24, matching CI, and npm. From the repository root:
The test suite checks the extension manifest, vendored grammar checksums, token scopes, comments and strings, line endings, SystemVerilog assertions, and the files in Preview in VS CodeOpen the repository in VS Code and press F5 to run the Preview Syntax Extension launch configuration. It opens an Extension Development Host with the example files and other extensions disabled. Preview in a browser
Open ReleasesGitHub Actions runs tests for pushes to The workflow does not publish to the VS Code Marketplace. Publish to the VS Code MarketplaceThe extension ID is From the repository root, authenticate and publish the current source:
The publish command runs the tests before packaging and uploading. To upload the VSIX you already built and tested, use:
Alternatively, upload the VSIX through the Marketplace publisher management page. Use a new version for each release and keep SupportReport highlighting issues at GitHub Issues. Include a small Verilog or SystemVerilog example, your VS Code version, and your active theme. License and grammar sourcesOriginal project code is licensed under the MIT License. Vendored grammars retain their respective licenses and copyright notices. The grammars are vendored from mshr-h/vscode-verilog-hdl-support at commit syntaxes/upstream.json records the pinned revision, checksums, and local SystemVerilog assertion-highlighting change. See THIRD_PARTY_NOTICES.txt for the applicable licenses and attribution. |