From bf1475df7597977fc2c501ece9e4afb64b757001 Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Thu, 16 Jul 2020 12:59:35 +0200 Subject: Add jsdoc parser --- README.md | 1 + lua/nvim-treesitter/parsers.lua | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/README.md b/README.md index 95efa6cc..e4c336d0 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 f4244ddd..42c41870 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 } -- cgit v1.2.3