
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
A VHDL parser for syntax highlighting.
Neovim, using nvim-treesitter and a Catppuccin colour scheme:
Neovim, using nvim-treesitter and a Tokyo Night colour scheme:
Neovim, using nvim-treesitter and a One Dark colour scheme:
If you'd like your favourite colour scheme to be listed here, issue a PR with a new screenshot of the screenshot example in the same style and composition as the other screenshots.
This version started off as a fork of alemuller/tree-sitter-vhdl, but ended up as a complete rewrite of the parser and highlighting scripts. It has very little in common with the original.
This parser uses a simplified grammar, because the full formal grammar in the VHDL standard is highly ambiguous without compiling the entire code-base into a symbol table. In many cases, invalid syntax will parse into a valid tree.
For the same reason, there might be cases where valid syntax does not map to a valid tree. In this case, please log a bug report.
In addition, the following features are not implemented, and are considered outside the scope of this project.
This parser has been merged into the official nvim-treesitter, so it should work out of the box after adding it to the list of languages to install.
If you would like to use the develop
branch instead (because it contains
the latest features that might not have been merged upstream yet), configure
your treesitter.lua
(or equivalent) as follows:
local parser_config = require('nvim-treesitter.parsers').get_parser_configs()
parser_config.vhdl = {
install_info = {
url = "https://github.com/jpt13653903/tree-sitter-vhdl.git",
files = { 'src/parser.c', 'src/scanner.c' },
branch = 'develop',
generate_requires_npm = false,
requires_generate_from_grammar = false,
},
filetype = 'vhdl',
}
local treesitter = require('nvim-treesitter.configs')
treesitter.setup {
ensure_installed = {
-- Some list of languages...
'vhdl',
-- Some more languages...
},
-- Some other options and configuration...
}
Then copy the contents of the queries/Neovim
folder to your after/queries/vhdl
configuration folder, typically ~/.config/nvim/after/queries/vhdl
on Linux
and ~/AppData/Local/nvim/after/queries/vhdl
on Windows.
Finally, run :TSUpdate
.
If this does not work, change the url
to a local clone of this repo instead.
The nvim-treesitter installer doesn't always follow the override if the url
points to an online repository.
This parser has been merged into the official Helix repo, so it should work out of the box.
npm install --save-dev tree-sitter-cli
node_modules/.bin
to your environment pathtree-sitter generate
tree-sitter test
Contributions are welcome. Read Contributing.md for more information.
FAQs
VHDL grammar for tree-sitter
We found that tree-sitter-vhdl demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.