
Security News
The Nightmare Before Deployment
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.
tree-sitter-javadoc
Advanced tools
Javadoc grammar for tree-sitter
Features:
/**)///) support@see and @link references@nospell set for javadocs syntax regions, so you don't have to turn spellcheck off anymore@snippet, @valueInstall nvim-treesitter, then from neovim:
:TSInstall java javadoc html css printf comment
It is recommended to install at least these parsers for treesitter support of java code.
Bindings are published to pypi, npm, and crates.io as tree-sitter-javadoc.
Wasm and source code artifacts are published to GitHub releases
You can customize highlighting by creating custom query files in ~/.config/nvim/queries/:
This ;; extends the default queries, and adds additional queries based on standard coding conventions.
Many treesitter parsers do this, including java, but neovim is trying to move away from it.
If you use an LSP with semantic token support, you don't need this. Otherwise, it might be useful to you.
~/.config/nvim/queries/javadoc/highlights.scm:
;; extends
; Capitalized methods in javadoc references are treated as constructors.
(((method
(identifier) @constructor)
(#lua-match? @constructor "^[A-Z]")))
; Screaming-case members are treated as constants.
((member
(identifier) @constant)
(#lua-match? @constant "^[A-Z_][A-Z0-9_]+$"))
; Camel-case members are treated as types.
((member
(identifier) @type)
(#lua-match? @type "^[A-Z].*[a-z]"))
The default highlighting incorporates highlighting of HTML and markdown tags via their respective parsers. For a more minimal approach with just highlighting of block and inline tags, you can override the injections.
~/.config/nvim/queries/javadoc/injections.scm:
; overriding with an empty query file to disable injections
FAQs
Parser for Javadoc documentation comments
We found that tree-sitter-javadoc 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.

Security News
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.

Research
/Security News
Impostor NuGet package Tracer.Fody.NLog typosquats Tracer.Fody and its author, using homoglyph tricks, and exfiltrates Stratis wallet JSON/passwords to a Russian IP address.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.