mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-07 05:50:04 -04:00
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:
parent
20a7e40203
commit
652da0b40f
6 changed files with 132 additions and 11 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue