2020-04-19 09:45:54 +02:00
|
|
|
local api = vim.api
|
|
|
|
|
local ts = vim.treesitter
|
|
|
|
|
|
2022-02-06 13:34:08 +01:00
|
|
|
local filetype_to_parsername = {
|
|
|
|
|
arduino = "cpp",
|
|
|
|
|
javascriptreact = "javascript",
|
|
|
|
|
ecma = "javascript",
|
|
|
|
|
jsx = "javascript",
|
|
|
|
|
PKGBUILD = "bash",
|
|
|
|
|
html_tags = "html",
|
|
|
|
|
["typescript.tsx"] = "tsx",
|
|
|
|
|
terraform = "hcl",
|
|
|
|
|
["html.handlebars"] = "glimmer",
|
|
|
|
|
systemverilog = "verilog",
|
|
|
|
|
cls = "latex",
|
|
|
|
|
sty = "latex",
|
|
|
|
|
OpenFOAM = "foam",
|
2022-04-08 11:38:40 -04:00
|
|
|
pandoc = "markdown",
|
|
|
|
|
rmd = "markdown",
|
2022-06-05 13:04:57 +02:00
|
|
|
cs = "c_sharp",
|
2022-02-06 13:34:08 +01:00
|
|
|
}
|
2020-11-30 21:30:07 -04:00
|
|
|
|
|
|
|
|
local list = setmetatable({}, {
|
|
|
|
|
__newindex = function(table, parsername, parserconfig)
|
2021-07-04 16:12:17 -05:00
|
|
|
rawset(
|
|
|
|
|
table,
|
|
|
|
|
parsername,
|
|
|
|
|
setmetatable(parserconfig, {
|
|
|
|
|
__newindex = function(parserconfigtable, key, value)
|
|
|
|
|
if key == "used_by" then
|
2022-02-06 13:34:08 +01:00
|
|
|
require("nvim-treesitter.utils").notify(
|
|
|
|
|
"used_by is deprecated, please use 'filetype_to_parsername'",
|
|
|
|
|
vim.log.levels.WARN
|
|
|
|
|
)
|
|
|
|
|
filetype_to_parsername[value] = parsername
|
2021-07-04 16:12:17 -05:00
|
|
|
else
|
|
|
|
|
rawset(parserconfigtable, key, value)
|
|
|
|
|
end
|
|
|
|
|
end,
|
|
|
|
|
})
|
|
|
|
|
)
|
2020-11-30 21:30:07 -04:00
|
|
|
|
2022-02-06 13:34:08 +01:00
|
|
|
filetype_to_parsername[parserconfig.filetype or parsername] = parsername
|
2021-07-04 16:12:17 -05:00
|
|
|
end,
|
2020-11-30 21:30:07 -04:00
|
|
|
})
|
2022-06-04 11:11:34 +08:00
|
|
|
|
2022-07-11 23:05:32 +08:00
|
|
|
list.agda = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/AusCyberman/tree-sitter-agda",
|
|
|
|
|
branch = "master",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
2022-07-11 23:16:25 +08:00
|
|
|
generate_requires_npm = true,
|
2022-07-11 23:05:32 +08:00
|
|
|
},
|
|
|
|
|
filetype = "agda",
|
2022-07-11 23:16:25 +08:00
|
|
|
maintainers = { "@Decodetalkers" },
|
2022-07-11 23:05:32 +08:00
|
|
|
}
|
2022-08-23 18:52:45 +08:00
|
|
|
|
|
|
|
|
list.meson = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/Decodetalkers/tree-sitter-meson",
|
|
|
|
|
branch = "master",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
},
|
|
|
|
|
filetype = "meson",
|
|
|
|
|
maintainers = { "@Decodetalkers" },
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-07 22:33:47 +08:00
|
|
|
list.qmljs = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/yuja/tree-sitter-qmljs",
|
|
|
|
|
branch = "master",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
|
|
|
|
},
|
|
|
|
|
filetype = "qmljs",
|
|
|
|
|
maintainers = { "@yuja" },
|
|
|
|
|
}
|
2022-06-04 11:11:34 +08:00
|
|
|
|
|
|
|
|
list.racket = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/6cdh/tree-sitter-racket",
|
|
|
|
|
branch = "main",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@6cdh" },
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-06 21:04:19 +08:00
|
|
|
list.scheme = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/6cdh/tree-sitter-scheme",
|
2022-04-09 20:20:53 +08:00
|
|
|
branch = "main",
|
2022-04-06 21:04:19 +08:00
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@6cdh" },
|
|
|
|
|
}
|
|
|
|
|
|
2020-06-20 12:21:42 +02:00
|
|
|
list.javascript = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/tree-sitter/tree-sitter-javascript",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
2020-08-17 00:21:34 +02:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@steelsojka" },
|
2020-06-20 12:21:42 +02:00
|
|
|
}
|
|
|
|
|
|
2022-04-01 21:27:10 +03:00
|
|
|
list.rego = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/FallenAngel97/tree-sitter-rego",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
},
|
2022-04-03 13:22:23 +03:00
|
|
|
maintainers = { "@FallenAngel97" },
|
|
|
|
|
filetype = "rego",
|
2022-04-01 21:27:10 +03:00
|
|
|
}
|
|
|
|
|
|
2020-06-20 12:21:42 +02:00
|
|
|
list.c = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/tree-sitter/tree-sitter-c",
|
2021-07-04 16:12:17 -05:00
|
|
|
files = { "src/parser.c" },
|
2020-08-15 18:12:37 +02:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@vigoux" },
|
2020-06-20 12:21:42 +02:00
|
|
|
}
|
|
|
|
|
|
2021-12-04 15:58:57 -05:00
|
|
|
list.embedded_template = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/tree-sitter/tree-sitter-embedded-template",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
},
|
|
|
|
|
filetype = "eruby",
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-29 22:59:36 +09:00
|
|
|
list.clojure = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/sogaiu/tree-sitter-clojure",
|
2021-03-07 16:28:07 +01:00
|
|
|
files = { "src/parser.c" },
|
2020-10-29 22:59:36 +09:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@sogaiu" },
|
2020-10-29 22:59:36 +09:00
|
|
|
}
|
|
|
|
|
|
2021-04-04 09:45:45 +02:00
|
|
|
list.commonlisp = {
|
|
|
|
|
install_info = {
|
2021-04-05 14:37:53 +02:00
|
|
|
url = "https://github.com/theHamsta/tree-sitter-commonlisp",
|
2021-04-04 09:45:45 +02:00
|
|
|
files = { "src/parser.c" },
|
2021-05-17 22:35:52 +02:00
|
|
|
generate_requires_npm = true,
|
2021-04-04 09:45:45 +02:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
filetype = "lisp",
|
|
|
|
|
maintainers = { "@theHamsta" },
|
2021-04-04 09:45:45 +02:00
|
|
|
}
|
|
|
|
|
|
2020-06-20 12:21:42 +02:00
|
|
|
list.cpp = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/tree-sitter/tree-sitter-cpp",
|
2021-03-07 17:05:16 +01:00
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
|
|
|
|
generate_requires_npm = true,
|
2020-07-15 16:03:21 +02:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@theHamsta" },
|
2021-06-09 18:47:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
list.cuda = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/theHamsta/tree-sitter-cuda",
|
2021-07-04 16:12:17 -05:00
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
2021-06-16 20:47:45 +02:00
|
|
|
generate_requires_npm = true,
|
2021-06-09 18:47:31 +02:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@theHamsta" },
|
2020-06-20 12:21:42 +02:00
|
|
|
}
|
|
|
|
|
|
2021-10-01 11:33:33 +02:00
|
|
|
list.d = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/CyberShadow/tree-sitter-d",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
|
|
|
|
requires_generate_from_grammar = true,
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@nawordar" },
|
|
|
|
|
-- Generating grammar takes ~60s
|
|
|
|
|
experimental = true,
|
|
|
|
|
}
|
|
|
|
|
|
2021-09-11 17:26:06 +02:00
|
|
|
list.glsl = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/theHamsta/tree-sitter-glsl",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
generate_requires_npm = true,
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@theHamsta" },
|
|
|
|
|
}
|
|
|
|
|
|
2022-06-15 01:15:25 +02:00
|
|
|
list.hlsl = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/theHamsta/tree-sitter-hlsl",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
|
|
|
|
generate_requires_npm = true,
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@theHamsta" },
|
|
|
|
|
}
|
|
|
|
|
|
2021-05-11 10:03:36 -06:00
|
|
|
list.dockerfile = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/camdencheek/tree-sitter-dockerfile",
|
|
|
|
|
branch = "main",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@camdencheek" },
|
2021-05-11 10:03:36 -06:00
|
|
|
}
|
|
|
|
|
|
2021-09-01 22:25:45 +08:00
|
|
|
list.dot = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/rydesun/tree-sitter-dot",
|
|
|
|
|
branch = "main",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@rydesun" },
|
|
|
|
|
}
|
|
|
|
|
|
2020-06-20 12:21:42 +02:00
|
|
|
list.rust = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/tree-sitter/tree-sitter-rust",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
2020-08-15 18:12:37 +02:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@vigoux" },
|
2020-06-20 12:21:42 +02:00
|
|
|
}
|
|
|
|
|
|
2021-11-26 16:37:51 +01:00
|
|
|
list.fusion = {
|
|
|
|
|
install_info = {
|
2021-11-26 22:08:14 +01:00
|
|
|
url = "https://gitlab.com/jirgn/tree-sitter-fusion.git",
|
2021-12-23 17:18:15 +01:00
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
2021-11-26 21:40:56 +01:00
|
|
|
branch = "main",
|
2021-11-26 16:37:51 +01:00
|
|
|
},
|
|
|
|
|
maintainers = { "@jirgn" },
|
|
|
|
|
}
|
|
|
|
|
|
2021-01-28 22:42:07 +01:00
|
|
|
list.ledger = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/cbarrete/tree-sitter-ledger",
|
2021-03-07 16:43:32 +01:00
|
|
|
files = { "src/parser.c" },
|
2021-01-28 22:42:07 +01:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@cbarrete" },
|
2021-01-28 22:42:07 +01:00
|
|
|
}
|
|
|
|
|
|
2020-06-20 12:21:42 +02:00
|
|
|
list.lua = {
|
|
|
|
|
install_info = {
|
2022-01-18 22:15:26 +01:00
|
|
|
url = "https://github.com/MunifTanjim/tree-sitter-lua",
|
|
|
|
|
branch = "main",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
2020-08-15 18:12:37 +02:00
|
|
|
},
|
2022-01-18 22:15:26 +01:00
|
|
|
maintainers = { "@muniftanjim" },
|
2020-06-20 12:21:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
list.python = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/tree-sitter/tree-sitter-python",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
2020-08-15 18:12:37 +02:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@stsewd", "@theHamsta" },
|
2020-06-20 12:21:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
list.go = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/tree-sitter/tree-sitter-go",
|
|
|
|
|
files = { "src/parser.c" },
|
2020-08-15 18:12:37 +02:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@theHamsta", "@WinWisely268" },
|
2020-06-20 12:21:42 +02:00
|
|
|
}
|
|
|
|
|
|
2021-04-27 15:17:42 -06:00
|
|
|
list.gomod = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/camdencheek/tree-sitter-go-mod",
|
2021-04-28 08:12:20 -06:00
|
|
|
branch = "main",
|
2021-04-27 15:17:42 -06:00
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@camdencheek" },
|
2021-04-27 15:17:42 -06:00
|
|
|
filetype = "gomod",
|
|
|
|
|
}
|
|
|
|
|
|
2021-12-16 22:40:06 +01:00
|
|
|
list.gowork = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/omertuc/tree-sitter-go-work",
|
|
|
|
|
branch = "main",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@omertuc" },
|
|
|
|
|
filetype = "gowork",
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-22 17:14:13 -06:00
|
|
|
list.graphql = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/bkegley/tree-sitter-graphql",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@bkegley" },
|
2020-11-22 17:14:13 -06:00
|
|
|
}
|
|
|
|
|
|
2020-06-20 12:21:42 +02:00
|
|
|
list.ruby = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/tree-sitter/tree-sitter-ruby",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
2020-08-15 18:12:37 +02:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@TravonteD" },
|
2020-06-20 12:21:42 +02:00
|
|
|
}
|
|
|
|
|
|
2021-08-27 07:30:22 -07:00
|
|
|
list.perl = {
|
|
|
|
|
install_info = {
|
2021-08-27 07:38:34 -07:00
|
|
|
url = "https://github.com/ganezdragon/tree-sitter-perl",
|
2021-08-27 07:30:22 -07:00
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
|
|
|
|
generate_requires_npm = true,
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@ganezdragon" },
|
|
|
|
|
}
|
|
|
|
|
|
2020-06-20 12:21:42 +02:00
|
|
|
list.bash = {
|
|
|
|
|
install_info = {
|
2020-06-21 13:47:56 -05:00
|
|
|
url = "https://github.com/tree-sitter/tree-sitter-bash",
|
2020-06-20 12:21:42 +02:00
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
|
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
filetype = "sh",
|
|
|
|
|
maintainers = { "@TravonteD" },
|
2020-06-20 12:21:42 +02:00
|
|
|
}
|
|
|
|
|
|
2021-05-01 16:27:40 +02:00
|
|
|
list.fish = {
|
|
|
|
|
install_info = {
|
2021-07-19 18:52:01 +02:00
|
|
|
url = "https://github.com/ram02z/tree-sitter-fish",
|
2021-05-01 16:27:40 +02:00
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
|
|
|
|
},
|
2021-07-19 18:52:01 +02:00
|
|
|
maintainers = { "@ram02z" },
|
2021-05-01 16:27:40 +02:00
|
|
|
}
|
|
|
|
|
|
2020-06-20 12:21:42 +02:00
|
|
|
list.php = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/tree-sitter/tree-sitter-php",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
2020-08-15 18:12:37 +02:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@tk-shirasaka" },
|
2020-06-20 12:21:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
list.java = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/tree-sitter/tree-sitter-java",
|
|
|
|
|
files = { "src/parser.c" },
|
2020-08-15 18:12:37 +02:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@p00f" },
|
2020-06-20 12:21:42 +02:00
|
|
|
}
|
|
|
|
|
|
2021-03-11 00:57:54 +01:00
|
|
|
list.kotlin = {
|
|
|
|
|
install_info = {
|
2022-01-06 02:16:46 +03:00
|
|
|
url = "https://github.com/fwcd/tree-sitter-kotlin",
|
|
|
|
|
branch = "main",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
2021-03-11 00:57:54 +01:00
|
|
|
},
|
2022-01-07 00:09:48 +03:00
|
|
|
maintainers = { "@SalBakraa" },
|
2021-03-11 00:57:54 +01:00
|
|
|
}
|
2020-11-30 22:58:52 +01:00
|
|
|
|
2020-06-20 12:21:42 +02:00
|
|
|
list.html = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/tree-sitter/tree-sitter-html",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
2020-08-15 18:12:37 +02:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@TravonteD" },
|
2020-06-20 12:21:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
list.julia = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/tree-sitter/tree-sitter-julia",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
2020-12-28 17:55:07 +01:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@mroavi", "@theHamsta" },
|
2020-06-20 12:21:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
list.json = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/tree-sitter/tree-sitter-json",
|
|
|
|
|
files = { "src/parser.c" },
|
2020-08-15 18:12:37 +02:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@steelsojka" },
|
2020-06-20 12:21:42 +02:00
|
|
|
}
|
|
|
|
|
|
2022-09-07 10:30:43 +02:00
|
|
|
list.jsonnet = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/sourcegraph/tree-sitter-jsonnet",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@nawordar" },
|
|
|
|
|
}
|
|
|
|
|
|
2020-06-20 12:21:42 +02:00
|
|
|
list.css = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/tree-sitter/tree-sitter-css",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
2020-08-15 18:12:37 +02:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@TravonteD" },
|
2020-06-20 12:21:42 +02:00
|
|
|
}
|
|
|
|
|
|
2021-03-27 18:10:31 +07:00
|
|
|
list.scss = {
|
|
|
|
|
install_info = {
|
2021-05-26 07:44:03 +07:00
|
|
|
url = "https://github.com/serenadeai/tree-sitter-scss",
|
2021-07-04 16:12:17 -05:00
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
2021-03-27 18:10:31 +07:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@elianiva" },
|
2021-03-27 18:10:31 +07:00
|
|
|
}
|
|
|
|
|
|
2020-12-07 08:17:37 +01:00
|
|
|
list.erlang = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/AbstractMachinesLab/tree-sitter-erlang",
|
2020-12-10 13:14:59 +01:00
|
|
|
files = { "src/parser.c" },
|
2020-12-10 17:23:21 +01:00
|
|
|
branch = "main",
|
2020-12-07 08:17:37 +01:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@ostera" },
|
2020-12-07 08:17:37 +01:00
|
|
|
}
|
|
|
|
|
|
2021-05-14 21:23:58 +02:00
|
|
|
list.elixir = {
|
|
|
|
|
install_info = {
|
2021-10-05 19:34:18 -07:00
|
|
|
url = "https://github.com/elixir-lang/tree-sitter-elixir",
|
2021-07-04 16:12:17 -05:00
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
2021-10-05 19:34:18 -07:00
|
|
|
branch = "main",
|
2021-05-14 21:23:58 +02:00
|
|
|
},
|
2022-02-15 07:36:41 -08:00
|
|
|
maintainers = { "@jonatanklosko", "@connorlay" },
|
2021-05-14 21:23:58 +02:00
|
|
|
}
|
|
|
|
|
|
2022-02-05 09:38:29 -08:00
|
|
|
list.gleam = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/J3RN/tree-sitter-gleam",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
branch = "main",
|
|
|
|
|
},
|
2022-02-15 07:36:41 -08:00
|
|
|
maintainers = { "@connorlay" },
|
2022-02-05 09:38:29 -08:00
|
|
|
}
|
|
|
|
|
|
2021-08-01 13:09:41 -06:00
|
|
|
list.surface = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/connorlay/tree-sitter-surface",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
branch = "main",
|
|
|
|
|
},
|
|
|
|
|
filetype = "sface",
|
|
|
|
|
maintainers = { "@connorlay" },
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-25 08:52:51 -08:00
|
|
|
list.eex = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/connorlay/tree-sitter-eex",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
branch = "main",
|
|
|
|
|
},
|
|
|
|
|
filetype = "eex",
|
|
|
|
|
maintainers = { "@connorlay" },
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-15 09:40:02 -07:00
|
|
|
list.heex = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/connorlay/tree-sitter-heex",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
branch = "main",
|
|
|
|
|
},
|
|
|
|
|
filetype = "heex",
|
|
|
|
|
maintainers = { "@connorlay" },
|
|
|
|
|
}
|
|
|
|
|
|
2020-06-20 12:21:42 +02:00
|
|
|
list.ocaml = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/tree-sitter/tree-sitter-ocaml",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
2022-06-25 11:51:21 +02:00
|
|
|
location = "ocaml",
|
2020-08-15 18:12:37 +02:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@undu" },
|
2020-06-20 12:21:42 +02:00
|
|
|
}
|
|
|
|
|
|
2020-09-10 18:44:09 +01:00
|
|
|
list.ocaml_interface = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/tree-sitter/tree-sitter-ocaml",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
2022-06-25 11:51:21 +02:00
|
|
|
location = "interface",
|
2020-09-10 18:44:09 +01:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@undu" },
|
|
|
|
|
filetype = "ocamlinterface",
|
2020-09-10 18:44:09 +01:00
|
|
|
}
|
|
|
|
|
|
2020-09-28 22:59:11 +01:00
|
|
|
list.ocamllex = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/atom-ocaml/tree-sitter-ocamllex",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
2021-07-04 16:12:17 -05:00
|
|
|
requires_generate_from_grammar = true,
|
2020-09-28 22:59:11 +01:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@undu" },
|
2020-09-28 22:59:11 +01:00
|
|
|
}
|
|
|
|
|
|
2022-09-01 19:36:23 +02:00
|
|
|
list.menhir = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/Kerl13/tree-sitter-menhir",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@Kerl13" },
|
|
|
|
|
filetype = "menhir",
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-19 23:50:32 +04:30
|
|
|
list.org = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/milisims/tree-sitter-org",
|
|
|
|
|
branch = "main",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
|
2020-06-20 12:21:42 +02:00
|
|
|
list.swift = {
|
|
|
|
|
install_info = {
|
2022-01-16 11:02:16 +01:00
|
|
|
url = "https://github.com/alex-pinkus/tree-sitter-swift",
|
2022-06-26 11:18:22 -07:00
|
|
|
branch = "main",
|
2022-01-16 11:02:16 +01:00
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
2022-06-26 11:18:22 -07:00
|
|
|
requires_generate_from_grammar = true,
|
2021-07-04 16:12:17 -05:00
|
|
|
},
|
2022-06-19 14:55:31 +02:00
|
|
|
maintainers = { "@alex-pinkus" },
|
2020-06-20 12:21:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
list.c_sharp = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/tree-sitter/tree-sitter-c-sharp",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
|
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
filetype = "cs",
|
|
|
|
|
maintainers = { "@Luxed" },
|
2020-06-20 12:21:42 +02:00
|
|
|
}
|
|
|
|
|
|
2022-02-28 14:07:23 +01:00
|
|
|
list.todotxt = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/arnarg/tree-sitter-todotxt.git",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
branch = "main",
|
|
|
|
|
},
|
|
|
|
|
filetype = "todotxt",
|
|
|
|
|
maintainers = { "@arnarg" },
|
|
|
|
|
experimental = true,
|
|
|
|
|
}
|
|
|
|
|
|
2020-06-20 12:21:42 +02:00
|
|
|
list.typescript = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/tree-sitter/tree-sitter-typescript",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
2022-06-25 11:51:21 +02:00
|
|
|
location = "typescript",
|
2021-03-07 17:05:16 +01:00
|
|
|
generate_requires_npm = true,
|
2020-08-15 18:12:37 +02:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@steelsojka" },
|
2020-06-20 12:21:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
list.tsx = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/tree-sitter/tree-sitter-typescript",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
2022-06-25 11:51:21 +02:00
|
|
|
location = "tsx",
|
2021-03-07 17:05:16 +01:00
|
|
|
generate_requires_npm = true,
|
2020-06-20 12:21:42 +02:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
filetype = "typescriptreact",
|
|
|
|
|
maintainers = { "@steelsojka" },
|
2020-06-20 12:21:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
list.scala = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/tree-sitter/tree-sitter-scala",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
2021-07-04 16:12:17 -05:00
|
|
|
},
|
2021-10-07 22:58:40 +02:00
|
|
|
maintainers = { "@stevanmilic" },
|
2020-06-20 12:21:42 +02:00
|
|
|
}
|
|
|
|
|
|
2021-02-01 17:09:27 +01:00
|
|
|
list.supercollider = {
|
2021-02-22 23:01:12 +01:00
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/madskjeldgaard/tree-sitter-supercollider",
|
2021-07-04 16:12:17 -05:00
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
2021-02-22 23:01:12 +01:00
|
|
|
branch = "main",
|
|
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@madskjeldgaard" },
|
2021-02-22 23:01:12 +01:00
|
|
|
filetype = "supercollider",
|
2021-02-01 17:09:27 +01:00
|
|
|
}
|
|
|
|
|
|
2022-03-07 16:10:31 -07:00
|
|
|
list.slint = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/jrmoulton/tree-sitter-slint",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
branch = "main",
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@jrmoulton" },
|
|
|
|
|
experimental = true,
|
|
|
|
|
}
|
|
|
|
|
|
2020-06-20 12:21:42 +02:00
|
|
|
list.haskell = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/tree-sitter/tree-sitter-haskell",
|
2022-01-05 22:21:19 +01:00
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
2021-07-04 16:12:17 -05:00
|
|
|
},
|
2020-06-20 12:21:42 +02:00
|
|
|
}
|
|
|
|
|
|
2021-06-28 19:11:33 +02:00
|
|
|
list.hcl = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/MichaHoffmann/tree-sitter-hcl",
|
2021-07-04 16:12:17 -05:00
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
|
|
|
|
branch = "main",
|
2021-06-28 19:11:33 +02:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@MichaHoffmann" },
|
2021-06-28 19:11:33 +02:00
|
|
|
filetype = "hcl",
|
|
|
|
|
}
|
|
|
|
|
|
2021-12-13 21:29:07 +01:00
|
|
|
list.markdown = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/MDeiml/tree-sitter-markdown",
|
2022-06-26 18:02:29 +02:00
|
|
|
location = "tree-sitter-markdown",
|
2021-12-13 21:29:07 +01:00
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
2022-06-26 18:02:29 +02:00
|
|
|
branch = "split_parser",
|
2022-06-28 22:34:55 +02:00
|
|
|
readme_name = "markdown (basic highlighting)",
|
2022-06-26 18:02:29 +02:00
|
|
|
},
|
|
|
|
|
maintainers = { "@MDeiml" },
|
|
|
|
|
experimental = true,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
list.markdown_inline = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/MDeiml/tree-sitter-markdown",
|
|
|
|
|
location = "tree-sitter-markdown-inline",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
|
|
|
|
branch = "split_parser",
|
2022-06-28 22:34:55 +02:00
|
|
|
readme_name = "markdown_inline (needs to be installed for full markdown highlighting)",
|
2021-12-13 21:29:07 +01:00
|
|
|
},
|
2022-06-26 18:02:29 +02:00
|
|
|
maintainers = { "@MDeiml" },
|
2021-12-13 21:29:07 +01:00
|
|
|
experimental = true,
|
|
|
|
|
}
|
2020-06-20 12:21:42 +02:00
|
|
|
|
2021-08-18 12:48:01 -04:00
|
|
|
list.tlaplus = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/tlaplus-community/tree-sitter-tlaplus",
|
2021-08-18 14:50:38 -04:00
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
2021-08-18 12:48:01 -04:00
|
|
|
},
|
2022-02-03 13:12:22 -05:00
|
|
|
maintainers = { "@ahelwer", "@susliko" },
|
2021-08-18 14:50:38 -04:00
|
|
|
filetype = "tla",
|
2021-08-18 12:48:01 -04:00
|
|
|
}
|
|
|
|
|
|
2020-06-20 12:21:42 +02:00
|
|
|
list.toml = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/ikatyang/tree-sitter-toml",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
2021-03-07 17:05:16 +01:00
|
|
|
generate_requires_npm = true,
|
2020-08-15 18:12:37 +02:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@tk-shirasaka" },
|
2020-06-20 12:21:42 +02:00
|
|
|
}
|
|
|
|
|
|
2021-02-28 17:40:35 -05:00
|
|
|
list.glimmer = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/alexlafroscia/tree-sitter-glimmer",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
2021-07-04 16:12:17 -05:00
|
|
|
branch = "main",
|
2021-02-28 17:40:35 -05:00
|
|
|
},
|
|
|
|
|
readme_name = "Glimmer and Ember",
|
|
|
|
|
maintainers = { "@alexlafroscia" },
|
2021-07-04 16:12:17 -05:00
|
|
|
filetype = "handlebars",
|
2021-02-28 17:40:35 -05:00
|
|
|
}
|
|
|
|
|
|
2021-07-10 17:36:49 +02:00
|
|
|
list.pug = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/zealot128/tree-sitter-pug",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@zealot128" },
|
|
|
|
|
filetype = "pug",
|
2022-09-18 17:29:06 +03:00
|
|
|
experimental = true,
|
2021-07-10 17:36:49 +02:00
|
|
|
}
|
|
|
|
|
|
2020-06-20 12:21:42 +02:00
|
|
|
list.vue = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/ikatyang/tree-sitter-vue",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
2021-02-17 09:37:56 +01:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@WhyNotHugo" },
|
2020-06-20 12:21:42 +02:00
|
|
|
}
|
|
|
|
|
|
2021-02-15 18:35:13 +01:00
|
|
|
list.jsonc = {
|
|
|
|
|
install_info = {
|
2021-03-02 17:44:20 +01:00
|
|
|
url = "https://gitlab.com/WhyNotHugo/tree-sitter-jsonc.git",
|
2021-02-15 18:35:13 +01:00
|
|
|
files = { "src/parser.c" },
|
2021-03-07 17:05:16 +01:00
|
|
|
generate_requires_npm = true,
|
2021-02-17 09:43:59 +01:00
|
|
|
},
|
|
|
|
|
readme_name = "JSON with comments",
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@WhyNotHugo" },
|
2021-02-15 18:35:13 +01:00
|
|
|
}
|
|
|
|
|
|
2020-06-20 12:21:42 +02:00
|
|
|
list.elm = {
|
|
|
|
|
install_info = {
|
2021-02-01 11:33:11 +01:00
|
|
|
url = "https://github.com/elm-tooling/tree-sitter-elm",
|
2020-06-20 12:21:42 +02:00
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
2021-07-04 16:12:17 -05:00
|
|
|
},
|
2020-06-20 12:21:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
list.yaml = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/ikatyang/tree-sitter-yaml",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
2021-04-18 16:51:03 -05:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@stsewd" },
|
2020-06-20 12:21:42 +02:00
|
|
|
}
|
|
|
|
|
|
2021-07-19 07:44:03 +02:00
|
|
|
list.yang = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/Hubro/tree-sitter-yang",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@Hubro" },
|
|
|
|
|
filetype = "yang",
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-08 01:26:33 +00:00
|
|
|
list.ninja = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/alemuller/tree-sitter-ninja",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
branch = "main",
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@alemuller" },
|
|
|
|
|
}
|
|
|
|
|
|
2020-06-20 12:21:42 +02:00
|
|
|
list.nix = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/cstrahan/tree-sitter-nix",
|
2021-02-10 22:35:43 +01:00
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
2020-11-18 17:22:47 -05:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@leo60228" },
|
2020-06-20 12:21:42 +02:00
|
|
|
}
|
|
|
|
|
|
2020-07-22 16:09:23 +02:00
|
|
|
list.dart = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/UserNobody14/tree-sitter-dart",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
2020-08-15 18:12:37 +02:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@Akin909" },
|
2020-07-22 16:09:23 +02:00
|
|
|
}
|
|
|
|
|
|
2020-07-26 09:38:53 -05:00
|
|
|
list.rst = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/stsewd/tree-sitter-rst",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
2020-08-15 18:12:37 +02:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@stsewd" },
|
2020-07-26 09:38:53 -05:00
|
|
|
}
|
|
|
|
|
|
2020-08-16 20:11:56 -04:00
|
|
|
list.fennel = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/travonted/tree-sitter-fennel",
|
2021-09-10 03:49:35 +03:00
|
|
|
files = { "src/parser.c" },
|
2020-08-15 18:12:37 +02:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@TravonteD" },
|
2020-08-16 20:11:56 -04:00
|
|
|
}
|
|
|
|
|
|
2020-10-04 19:39:12 -05:00
|
|
|
list.teal = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/euclidianAce/tree-sitter-teal",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
2021-07-06 00:40:58 +02:00
|
|
|
requires_generate_from_grammar = true,
|
2020-10-04 19:39:12 -05:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@euclidianAce" },
|
2020-10-04 19:39:12 -05:00
|
|
|
}
|
|
|
|
|
|
2020-09-30 00:30:26 +02:00
|
|
|
list.ql = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/tree-sitter/tree-sitter-ql",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@pwntester" },
|
2020-09-30 00:30:26 +02:00
|
|
|
}
|
|
|
|
|
|
2021-03-10 12:00:02 +01:00
|
|
|
list.verilog = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/tree-sitter/tree-sitter-verilog",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
generate_requires_npm = true,
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@zegervdv" },
|
|
|
|
|
}
|
2021-03-07 17:05:16 +01:00
|
|
|
|
2021-12-24 19:53:32 +01:00
|
|
|
list.pascal = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/Isopod/tree-sitter-pascal.git",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@isopod" },
|
|
|
|
|
}
|
|
|
|
|
|
2020-07-16 12:59:35 +02:00
|
|
|
-- Parsers for injections
|
2022-02-01 12:51:31 +01:00
|
|
|
list.phpdoc = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/claytonrcarter/tree-sitter-phpdoc",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
|
|
|
|
generate_requires_npm = true,
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@mikehaertl" },
|
|
|
|
|
experimental = true,
|
|
|
|
|
}
|
|
|
|
|
|
2020-06-20 12:21:42 +02:00
|
|
|
list.regex = {
|
2020-06-29 14:46:25 +02:00
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/tree-sitter/tree-sitter-regex",
|
2021-07-04 16:12:17 -05:00
|
|
|
files = { "src/parser.c" },
|
2020-08-15 18:12:37 +02:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@theHamsta" },
|
2020-06-20 12:21:42 +02:00
|
|
|
}
|
|
|
|
|
|
2021-03-12 11:21:46 -05:00
|
|
|
list.comment = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/stsewd/tree-sitter-comment",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
|
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@stsewd" },
|
2021-03-12 11:21:46 -05:00
|
|
|
}
|
|
|
|
|
|
2020-07-16 12:59:35 +02:00
|
|
|
list.jsdoc = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/tree-sitter/tree-sitter-jsdoc",
|
2021-03-07 16:43:32 +01:00
|
|
|
files = { "src/parser.c" },
|
2020-08-15 18:12:37 +02:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@steelsojka" },
|
2020-07-16 12:59:35 +02:00
|
|
|
}
|
|
|
|
|
|
2020-07-28 10:55:54 -05:00
|
|
|
list.query = {
|
2020-07-28 07:39:45 -05:00
|
|
|
install_info = {
|
2020-07-28 10:55:54 -05:00
|
|
|
url = "https://github.com/nvim-treesitter/tree-sitter-query",
|
2021-07-04 16:12:17 -05:00
|
|
|
files = { "src/parser.c" },
|
2020-08-15 18:12:37 +02:00
|
|
|
},
|
|
|
|
|
readme_name = "Tree-sitter query language",
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@steelsojka" },
|
2020-07-28 07:39:45 -05:00
|
|
|
}
|
|
|
|
|
|
2020-12-28 12:54:18 +01:00
|
|
|
list.sparql = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/BonaBeavis/tree-sitter-sparql",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
branch = "main",
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@bonabeavis" },
|
|
|
|
|
}
|
|
|
|
|
|
2021-03-14 22:38:54 -02:30
|
|
|
list.sql = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/derekstride/tree-sitter-sql",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@derekstride" },
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-17 17:28:53 -05:00
|
|
|
list.gdscript = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/PrestonKnopp/tree-sitter-gdscript",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
|
|
|
|
},
|
|
|
|
|
readme_name = "Godot (gdscript)",
|
2021-07-04 16:12:17 -05:00
|
|
|
maintainers = { "@Shatur95" },
|
2020-11-17 17:28:53 -05:00
|
|
|
}
|
|
|
|
|
|
2021-11-25 22:18:14 +01:00
|
|
|
list.godot_resource = {
|
2021-07-28 19:52:29 +02:00
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/PrestonKnopp/tree-sitter-godot-resource",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
|
|
|
|
requires_generate_from_grammar = true,
|
|
|
|
|
},
|
2021-07-29 11:15:42 +02:00
|
|
|
filetype = "gdresource",
|
|
|
|
|
readme_name = "Godot Resources (gdresource)",
|
2021-07-28 19:52:29 +02:00
|
|
|
maintainers = { "@pierpo" },
|
|
|
|
|
}
|
|
|
|
|
|
2021-01-05 12:37:16 +01:00
|
|
|
list.turtle = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/BonaBeavis/tree-sitter-turtle",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
branch = "main",
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@bonabeavis" },
|
|
|
|
|
}
|
|
|
|
|
|
2021-02-10 22:18:38 +01:00
|
|
|
list.devicetree = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/joelspadin/tree-sitter-devicetree",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
branch = "main",
|
2021-07-04 16:12:17 -05:00
|
|
|
requires_generate_from_grammar = true,
|
2021-02-10 22:18:38 +01:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
filetype = "dts",
|
2021-02-10 22:18:38 +01:00
|
|
|
maintainers = { "@jedrzejboczar" },
|
|
|
|
|
}
|
|
|
|
|
|
2021-02-05 13:45:26 +07:00
|
|
|
list.svelte = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/Himujjal/tree-sitter-svelte",
|
2021-03-07 17:05:16 +01:00
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
2021-02-05 13:45:26 +07:00
|
|
|
branch = "master",
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@elianiva" },
|
|
|
|
|
}
|
|
|
|
|
|
2021-03-09 21:06:07 +02:00
|
|
|
list.r = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/r-lib/tree-sitter-r",
|
2022-05-28 15:43:28 +02:00
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
2021-03-09 21:06:07 +02:00
|
|
|
},
|
|
|
|
|
maintainers = { "@jimhester" },
|
|
|
|
|
}
|
|
|
|
|
|
2021-03-21 13:30:10 -04:00
|
|
|
list.beancount = {
|
2021-03-21 00:03:20 +01:00
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/polarmutex/tree-sitter-beancount",
|
2022-06-28 04:44:38 -04:00
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
2021-03-21 00:03:20 +01:00
|
|
|
branch = "master",
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@polarmutex" },
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-19 06:31:31 +02:00
|
|
|
list.rnoweb = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/bamonroe/tree-sitter-rnoweb",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
|
|
|
|
},
|
|
|
|
|
filetype = "rnoweb",
|
|
|
|
|
maintainers = { "@bamonroe" },
|
|
|
|
|
}
|
|
|
|
|
|
2021-03-21 00:03:20 +01:00
|
|
|
list.latex = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/latex-lsp/tree-sitter-latex",
|
2022-02-04 11:29:46 +01:00
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
2021-03-21 00:03:20 +01:00
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
filetype = "tex",
|
2022-02-04 11:29:46 +01:00
|
|
|
maintainers = { "@theHamsta, @clason" },
|
2021-03-21 00:03:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
list.bibtex = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/latex-lsp/tree-sitter-bibtex",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
},
|
2021-07-04 16:12:17 -05:00
|
|
|
filetype = "bib",
|
2022-02-04 11:29:46 +01:00
|
|
|
maintainers = { "@theHamsta, @clason" },
|
2021-03-21 13:26:33 -04:00
|
|
|
}
|
|
|
|
|
|
2021-03-23 06:18:43 +05:30
|
|
|
list.zig = {
|
|
|
|
|
install_info = {
|
2021-08-08 18:54:24 +09:00
|
|
|
url = "https://github.com/maxxnino/tree-sitter-zig",
|
2021-07-04 16:12:17 -05:00
|
|
|
files = { "src/parser.c" },
|
2021-08-08 18:54:24 +09:00
|
|
|
branch = "main",
|
2021-03-23 06:18:43 +05:30
|
|
|
},
|
|
|
|
|
filetype = "zig",
|
2021-08-08 18:54:24 +09:00
|
|
|
maintainers = { "@maxxnino" },
|
2021-03-23 06:18:43 +05:30
|
|
|
}
|
|
|
|
|
|
2021-04-17 20:36:03 +02:00
|
|
|
list.fortran = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/stadelmanma/tree-sitter-fortran",
|
2021-07-04 16:12:17 -05:00
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
2021-04-17 20:36:03 +02:00
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
|
2021-06-20 21:37:07 +02:00
|
|
|
list.cmake = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/uyha/tree-sitter-cmake",
|
2021-07-04 16:12:17 -05:00
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
2021-06-20 21:37:07 +02:00
|
|
|
},
|
2021-06-21 21:25:03 +02:00
|
|
|
maintainers = { "@uyha" },
|
2021-06-20 21:37:07 +02:00
|
|
|
}
|
|
|
|
|
|
2021-04-18 09:57:02 +02:00
|
|
|
list.vim = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/vigoux/tree-sitter-viml",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
|
|
|
|
},
|
|
|
|
|
filetype = "vim",
|
|
|
|
|
maintainers = { "@vigoux" },
|
|
|
|
|
}
|
|
|
|
|
|
2022-03-26 14:42:45 +01:00
|
|
|
list.help = {
|
|
|
|
|
install_info = {
|
2022-09-28 14:49:51 +02:00
|
|
|
url = "https://github.com/neovim/tree-sitter-vimdoc",
|
|
|
|
|
files = { "src/parser.c" },
|
2022-03-26 14:42:45 +01:00
|
|
|
},
|
|
|
|
|
filetype = "help",
|
|
|
|
|
maintainers = { "@vigoux" },
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-24 18:23:16 -04:00
|
|
|
list.json5 = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/Joakker/tree-sitter-json5",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
},
|
|
|
|
|
filetype = "json5",
|
|
|
|
|
maintainers = { "@Joakker" },
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-29 13:10:15 -04:00
|
|
|
list.pioasm = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/leo60228/tree-sitter-pioasm",
|
|
|
|
|
branch = "main",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@leo60228" },
|
|
|
|
|
}
|
|
|
|
|
|
2021-09-18 21:15:37 +01:00
|
|
|
list.hjson = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/winston0410/tree-sitter-hjson",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
generate_requires_npm = true,
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@winston0410" },
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-15 16:35:55 +02:00
|
|
|
list.hocon = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/antosha417/tree-sitter-hocon",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
generate_requires_npm = true,
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@antosha417" },
|
|
|
|
|
}
|
|
|
|
|
|
2021-10-02 17:09:40 -04:00
|
|
|
list.llvm = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/benwilliamgraham/tree-sitter-llvm",
|
2021-10-02 17:26:01 -04:00
|
|
|
branch = "main",
|
2021-10-02 17:09:40 -04:00
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@benwilliamgraham" },
|
|
|
|
|
}
|
|
|
|
|
|
2021-11-04 13:56:26 +02:00
|
|
|
list.http = {
|
|
|
|
|
install_info = {
|
2022-08-08 23:20:52 -04:00
|
|
|
url = "https://github.com/rest-nvim/tree-sitter-http",
|
2021-11-04 13:56:26 +02:00
|
|
|
branch = "main",
|
|
|
|
|
files = { "src/parser.c" },
|
2021-11-04 23:12:21 +02:00
|
|
|
generate_requires_npm = true,
|
2021-11-04 13:56:26 +02:00
|
|
|
},
|
|
|
|
|
maintainers = { "@NTBBloodbath" },
|
2021-11-23 09:17:37 +07:00
|
|
|
}
|
2021-12-14 10:47:47 +00:00
|
|
|
|
2021-11-01 06:20:58 +07:00
|
|
|
list.prisma = {
|
|
|
|
|
install_info = {
|
2021-11-23 09:17:37 +07:00
|
|
|
url = "https://github.com/victorhqc/tree-sitter-prisma",
|
2021-11-01 06:20:58 +07:00
|
|
|
branch = "master",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@elianiva" },
|
2021-11-04 13:56:26 +02:00
|
|
|
}
|
|
|
|
|
|
2021-12-14 10:47:47 +00:00
|
|
|
list.make = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/alemuller/tree-sitter-make",
|
|
|
|
|
branch = "main",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@lewis6991" },
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-04 23:22:29 +01:00
|
|
|
list.rasi = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/Fymyte/tree-sitter-rasi",
|
|
|
|
|
branch = "main",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@Fymyte" },
|
|
|
|
|
}
|
|
|
|
|
|
2021-12-14 13:45:56 +01:00
|
|
|
list.foam = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/FoamScience/tree-sitter-foam",
|
|
|
|
|
branch = "master",
|
2022-01-07 16:49:33 +01:00
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
2021-12-14 13:45:56 +01:00
|
|
|
},
|
|
|
|
|
maintainers = { "@FoamScience" },
|
|
|
|
|
filetype = "foam",
|
|
|
|
|
-- Queries might change over time on the grammar's side
|
|
|
|
|
-- Otherwise everything runs fine
|
|
|
|
|
experimental = true,
|
|
|
|
|
}
|
|
|
|
|
|
2021-11-23 01:06:51 +01:00
|
|
|
list.hack = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/slackhq/tree-sitter-hack",
|
|
|
|
|
branch = "main",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-29 19:31:37 +02:00
|
|
|
list.norg = {
|
|
|
|
|
install_info = {
|
2021-09-09 22:48:57 +02:00
|
|
|
url = "https://github.com/nvim-neorg/tree-sitter-norg",
|
2021-08-29 19:31:37 +02:00
|
|
|
branch = "main",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
2021-09-09 22:11:07 +02:00
|
|
|
use_makefile = true,
|
2021-09-09 22:48:57 +02:00
|
|
|
cxx_standard = "c++14",
|
2021-08-29 19:31:37 +02:00
|
|
|
},
|
2021-09-09 22:48:57 +02:00
|
|
|
maintainers = { "@JoeyGrajciar", "@vhyrro", "@mrossinek" },
|
2021-08-29 19:31:37 +02:00
|
|
|
}
|
|
|
|
|
|
2022-01-28 19:13:39 -03:00
|
|
|
list.vala = {
|
|
|
|
|
install_info = {
|
2022-04-17 13:35:17 -04:00
|
|
|
url = "https://github.com/vala-lang/tree-sitter-vala",
|
|
|
|
|
branch = "master",
|
|
|
|
|
files = { "src/parser.c" },
|
2022-01-28 19:13:39 -03:00
|
|
|
},
|
2022-04-17 13:35:17 -04:00
|
|
|
maintainers = { "@Prince781", "@vala-lang" },
|
2022-01-28 19:13:39 -03:00
|
|
|
}
|
|
|
|
|
|
2022-02-13 17:18:41 +01:00
|
|
|
list.lalrpop = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/traxys/tree-sitter-lalrpop",
|
|
|
|
|
branch = "master",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@traxys" },
|
|
|
|
|
}
|
|
|
|
|
|
2022-03-10 19:14:49 +08:00
|
|
|
list.solidity = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/YongJieYongJie/tree-sitter-solidity",
|
|
|
|
|
branch = "with-generated-c-code",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@YongJieYongJie" },
|
|
|
|
|
}
|
|
|
|
|
|
2022-03-14 10:01:14 -07:00
|
|
|
list.cooklang = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/addcninblue/tree-sitter-cooklang",
|
|
|
|
|
branch = "master",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@addcninblue" },
|
|
|
|
|
}
|
|
|
|
|
|
2022-03-26 18:27:11 +01:00
|
|
|
list.elvish = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/ckafi/tree-sitter-elvish",
|
|
|
|
|
branch = "main",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@ckafi" },
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-07 20:34:19 +08:00
|
|
|
list.astro = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/virchau13/tree-sitter-astro",
|
|
|
|
|
branch = "master",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@virchau13" },
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-11 18:14:04 +02:00
|
|
|
list.wgsl = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/szebniok/tree-sitter-wgsl",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@szebniok" },
|
2022-04-11 19:14:19 +02:00
|
|
|
filetype = "wgsl",
|
2022-04-11 18:14:04 +02:00
|
|
|
}
|
|
|
|
|
|
2022-04-26 17:53:51 +01:00
|
|
|
list.m68k = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/grahambates/tree-sitter-m68k",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@grahambates" },
|
|
|
|
|
filetype = "asm68k",
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-26 15:36:26 -04:00
|
|
|
list.proto = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/mitchellh/tree-sitter-proto",
|
|
|
|
|
branch = "main",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@fsouza" },
|
|
|
|
|
filetype = "proto",
|
|
|
|
|
}
|
|
|
|
|
|
2022-02-22 17:36:44 +03:00
|
|
|
list.v = {
|
|
|
|
|
install_info = {
|
2022-02-22 18:48:05 +01:00
|
|
|
url = "https://github.com/vlang/vls",
|
2022-02-22 17:36:44 +03:00
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
2022-06-25 11:51:21 +02:00
|
|
|
location = "tree_sitter_v",
|
2022-02-22 17:36:44 +03:00
|
|
|
generate_requires_npm = false,
|
|
|
|
|
requires_generate_from_grammar = false,
|
|
|
|
|
},
|
|
|
|
|
filetype = "vlang",
|
|
|
|
|
maintainers = { "@tami5" },
|
|
|
|
|
}
|
|
|
|
|
|
2022-06-14 17:24:28 +02:00
|
|
|
list.tiger = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/ambroisie/tree-sitter-tiger",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.c" },
|
|
|
|
|
branch = "main",
|
|
|
|
|
generate_requires_npm = false,
|
|
|
|
|
requires_generate_from_grammar = false,
|
|
|
|
|
},
|
|
|
|
|
filetype = "tiger",
|
|
|
|
|
maintainers = { "@ambroisie" },
|
|
|
|
|
}
|
|
|
|
|
|
2022-08-31 03:44:53 +03:00
|
|
|
list.sxhkdrc = {
|
|
|
|
|
install_info = {
|
2022-08-31 15:17:14 +03:00
|
|
|
url = "https://github.com/RaafatTurki/tree-sitter-sxhkdrc",
|
2022-09-01 00:13:19 +03:00
|
|
|
files = { "src/parser.c" },
|
2022-08-31 03:44:53 +03:00
|
|
|
branch = "master",
|
|
|
|
|
generate_requires_npm = false,
|
|
|
|
|
requires_generate_from_grammar = false,
|
|
|
|
|
filetype = "sxhkdrc",
|
2022-09-01 00:13:19 +03:00
|
|
|
},
|
|
|
|
|
maintainers = { "@RaafatTurki" },
|
2022-08-31 03:44:53 +03:00
|
|
|
}
|
|
|
|
|
|
2022-08-15 23:36:56 +02:00
|
|
|
list.gitignore = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/shunsambongi/tree-sitter-gitignore",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
branch = "main",
|
|
|
|
|
requires_generate_from_grammar = true,
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@theHamsta" },
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-20 01:33:31 +02:00
|
|
|
list.nickel = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/nickel-lang/tree-sitter-nickel",
|
|
|
|
|
files = { "src/parser.c", "src/scanner.cc" },
|
|
|
|
|
branch = "main",
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
|
2022-09-08 14:48:02 +03:00
|
|
|
list.gitattributes = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/ObserverOfTime/tree-sitter-gitattributes",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@ObserverOfTime" },
|
|
|
|
|
}
|
|
|
|
|
|
2022-09-11 09:48:25 +02:00
|
|
|
list.blueprint = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://gitlab.com/gabmus/tree-sitter-blueprint.git",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@gabmus" },
|
|
|
|
|
experimental = true,
|
|
|
|
|
}
|
|
|
|
|
|
2022-09-19 17:18:19 +02:00
|
|
|
list.twig = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/gbprod/tree-sitter-twig",
|
|
|
|
|
branch = "main",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@gbprod" },
|
|
|
|
|
filetype = "twig",
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-18 13:15:07 +02:00
|
|
|
list.diff = {
|
|
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/the-mikedavis/tree-sitter-diff",
|
|
|
|
|
branch = "main",
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
},
|
|
|
|
|
maintainers = { "@gbprod" },
|
|
|
|
|
filetype = "gitdiff",
|
|
|
|
|
}
|
|
|
|
|
|
2020-06-20 12:21:42 +02:00
|
|
|
local M = {
|
2021-07-04 16:12:17 -05:00
|
|
|
list = list,
|
2022-02-06 13:34:08 +01:00
|
|
|
filetype_to_parsername = filetype_to_parsername,
|
2020-06-20 12:21:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function M.ft_to_lang(ft)
|
2022-02-06 13:34:08 +01:00
|
|
|
local result = filetype_to_parsername[ft]
|
2021-11-03 11:56:23 -04:00
|
|
|
if result then
|
|
|
|
|
return result
|
|
|
|
|
else
|
|
|
|
|
ft = vim.split(ft, ".", true)[1]
|
2022-02-06 13:34:08 +01:00
|
|
|
return filetype_to_parsername[ft] or ft
|
2021-11-03 11:56:23 -04:00
|
|
|
end
|
2020-06-20 12:21:42 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function M.available_parsers()
|
2022-10-03 09:53:27 +02:00
|
|
|
if vim.fn.executable "tree-sitter" == 1 and vim.fn.executable "node" == 1 then
|
2021-04-01 11:44:53 +02:00
|
|
|
return vim.tbl_keys(M.list)
|
|
|
|
|
else
|
2021-07-04 16:12:17 -05:00
|
|
|
return vim.tbl_filter(function(p)
|
|
|
|
|
return not M.list[p].install_info.requires_generate_from_grammar
|
2021-11-16 21:19:51 -05:00
|
|
|
end, vim.tbl_keys(M.list))
|
2021-04-01 11:44:53 +02:00
|
|
|
end
|
2020-06-20 12:21:42 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function M.get_parser_configs()
|
|
|
|
|
return M.list
|
|
|
|
|
end
|
2020-04-19 09:45:54 +02:00
|
|
|
|
2020-08-11 14:36:13 +02:00
|
|
|
local parser_files
|
|
|
|
|
|
|
|
|
|
function M.reset_cache()
|
|
|
|
|
parser_files = setmetatable({}, {
|
|
|
|
|
__index = function(tbl, key)
|
2021-07-04 16:12:17 -05:00
|
|
|
rawset(tbl, key, api.nvim_get_runtime_file("parser/" .. key .. ".*", false))
|
2020-08-11 14:36:13 +02:00
|
|
|
return rawget(tbl, key)
|
2021-07-04 16:12:17 -05:00
|
|
|
end,
|
2020-08-11 14:36:13 +02:00
|
|
|
})
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
M.reset_cache()
|
|
|
|
|
|
2020-04-19 09:45:54 +02:00
|
|
|
function M.has_parser(lang)
|
2022-02-06 13:34:08 +01:00
|
|
|
lang = lang or M.get_buf_lang(api.nvim_get_current_buf())
|
2020-08-11 14:36:13 +02:00
|
|
|
|
2021-07-04 16:12:17 -05:00
|
|
|
if not lang or #lang == 0 then
|
|
|
|
|
return false
|
|
|
|
|
end
|
2020-12-06 03:48:31 +00:00
|
|
|
-- HACK: nvim internal API
|
2021-07-04 16:12:17 -05:00
|
|
|
if vim._ts_has_language(lang) then
|
|
|
|
|
return true
|
|
|
|
|
end
|
2020-08-11 14:36:13 +02:00
|
|
|
return #parser_files[lang] > 0
|
2020-04-19 09:45:54 +02:00
|
|
|
end
|
|
|
|
|
|
2020-04-19 17:54:27 +02:00
|
|
|
function M.get_parser(bufnr, lang)
|
2022-02-06 13:34:08 +01:00
|
|
|
bufnr = bufnr or api.nvim_get_current_buf()
|
|
|
|
|
lang = lang or M.get_buf_lang(bufnr)
|
2020-06-19 13:45:33 +02:00
|
|
|
|
2020-05-05 15:04:01 +02:00
|
|
|
if M.has_parser(lang) then
|
2020-10-15 21:04:38 +02:00
|
|
|
return ts.get_parser(bufnr, lang)
|
2020-04-19 09:45:54 +02:00
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
2021-03-30 08:18:24 -05:00
|
|
|
-- @deprecated This is only kept for legacy purposes.
|
|
|
|
|
-- All root nodes should be accounted for.
|
2020-08-11 02:53:05 -05:00
|
|
|
function M.get_tree_root(bufnr)
|
2022-02-06 13:34:08 +01:00
|
|
|
bufnr = bufnr or api.nvim_get_current_buf()
|
2020-11-23 19:46:27 +01:00
|
|
|
return M.get_parser(bufnr):parse()[1]:root()
|
2020-08-11 02:53:05 -05:00
|
|
|
end
|
|
|
|
|
|
2020-07-10 21:47:50 +02:00
|
|
|
-- get language of given buffer
|
|
|
|
|
-- @param optional buffer number or current buffer
|
|
|
|
|
-- @returns language string of buffer
|
|
|
|
|
function M.get_buf_lang(bufnr)
|
|
|
|
|
bufnr = bufnr or api.nvim_get_current_buf()
|
|
|
|
|
return M.ft_to_lang(api.nvim_buf_get_option(bufnr, "ft"))
|
|
|
|
|
end
|
|
|
|
|
|
2020-04-19 09:45:54 +02:00
|
|
|
return M
|