From d7c4ae886d90471b1839dd601887bdd6e882efd9 Mon Sep 17 00:00:00 2001 From: Michael Härtl Date: Mon, 17 Jan 2022 12:20:47 +0100 Subject: parsers: add phpdoc parser (experimental) --- lua/nvim-treesitter/parsers.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lua') diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index 8e28d743d..3fc43f884 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -245,6 +245,17 @@ list.php = { maintainers = { "@tk-shirasaka" }, } +list.phpdoc = { + install_info = { + url = "https://github.com/claytonrcarter/tree-sitter-phpdoc", + files = { "src/parser.c" }, + -- parser.c in the repo still based on TS 0.17 due to other dependencies + requires_generate_from_grammar = true, + generate_requires_npm = true, + }, + experimental = true, +} + list.java = { install_info = { url = "https://github.com/tree-sitter/tree-sitter-java", -- cgit v1.2.3-70-g09d2