mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 13:00:08 -04:00
Parsers: add reStructuredText
This commit is contained in:
parent
121c44a23b
commit
6f01384cb2
9 changed files with 186 additions and 4 deletions
|
|
@ -53,6 +53,15 @@ hlmap["type.builtin"] = "TSTypeBuiltin"
|
|||
hlmap["structure"] = "TSStructure"
|
||||
hlmap["include"] = "TSInclude"
|
||||
|
||||
-- Text
|
||||
hlmap["text"] = "TSText"
|
||||
hlmap["text.strong"] = "TSStrong"
|
||||
hlmap["text.emphasis"] = "TSEmphasis"
|
||||
hlmap["text.underline"] = "TSUnderline"
|
||||
hlmap["text.title"] = "TSTitle"
|
||||
hlmap["text.literal"] = "TSLiteral"
|
||||
hlmap["text.uri"] = "TSURI"
|
||||
|
||||
function M.attach(bufnr, lang)
|
||||
local bufnr = bufnr or api.nvim_get_current_buf()
|
||||
local lang = lang or parsers.get_buf_lang(bufnr)
|
||||
|
|
|
|||
|
|
@ -214,6 +214,13 @@ list.dart = {
|
|||
}
|
||||
}
|
||||
|
||||
list.rst = {
|
||||
install_info = {
|
||||
url = "https://github.com/stsewd/tree-sitter-rst",
|
||||
files = { "src/parser.c", "src/scanner.c" },
|
||||
}
|
||||
}
|
||||
|
||||
-- Parsers for injections
|
||||
list.regex = {
|
||||
install_info = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue