diff options
| author | Robert Muir <rmuir@apache.org> | 2025-03-23 11:44:12 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-23 16:44:12 +0100 |
| commit | 652da0b40f556c1772904a82ee5800f41a1ba9f8 (patch) | |
| tree | dc93a252c426eb339d3e105298cd72df44b0545b /lua | |
| parent | bot(lockfile): update swift (diff) | |
| download | nvim-treesitter-652da0b40f556c1772904a82ee5800f41a1ba9f8.tar nvim-treesitter-652da0b40f556c1772904a82ee5800f41a1ba9f8.tar.gz nvim-treesitter-652da0b40f556c1772904a82ee5800f41a1ba9f8.tar.bz2 nvim-treesitter-652da0b40f556c1772904a82ee5800f41a1ba9f8.tar.lz nvim-treesitter-652da0b40f556c1772904a82ee5800f41a1ba9f8.tar.xz nvim-treesitter-652da0b40f556c1772904a82ee5800f41a1ba9f8.tar.zst nvim-treesitter-652da0b40f556c1772904a82ee5800f41a1ba9f8.zip | |
feat(javadoc): add parser and queries (#7749)
Previously java was configured to use doxygen parser for documentation
comments, but javadocs are not doxygen. Inline tags have a different
syntax, block tags are not recognized, and doxygen creates a lot of
errors during highlighting.
Add parser for javadoc comments, with queries for highlights and
injections.
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim-treesitter/parsers.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index c73225f9d..b4bbf751d 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -1127,6 +1127,14 @@ list.java = { maintainers = { "@p00f" }, } +list.javadoc = { + install_info = { + url = "https://github.com/rmuir/tree-sitter-javadoc", + files = { "src/parser.c", "src/scanner.c" }, + }, + maintainers = { "@rmuir" }, +} + list.javascript = { install_info = { url = "https://github.com/tree-sitter/tree-sitter-javascript", |
