diff --git a/README.md b/README.md index 95efa6ccc..e4c336d0b 100644 --- a/README.md +++ b/README.md @@ -282,6 +282,7 @@ List of currently supported languages: - [ ] nix - [ ] markdown - [x] regex (maintained by @theHamsta) +- [ ] jsdoc ## User Query Extensions diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index f4244ddd1..42c41870e 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -207,6 +207,7 @@ list.nix = { } } +-- Parsers for injections list.regex = { install_info = { url = "https://github.com/tree-sitter/tree-sitter-regex", @@ -214,6 +215,13 @@ list.regex = { } } +list.jsdoc = { + install_info = { + url = "https://github.com/tree-sitter/tree-sitter-jsdoc", + files = { "src/parser.c" } + } +} + local M = { list = list }