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.
This commit is contained in:
Robert Muir 2025-03-23 11:44:12 -04:00 committed by GitHub
parent 20a7e40203
commit 652da0b40f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 132 additions and 11 deletions

View file

@ -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",