diff options
| author | Santos Gallegos <stsewd@protonmail.com> | 2020-07-26 09:38:53 -0500 |
|---|---|---|
| committer | Thomas Vigouroux <39092278+vigoux@users.noreply.github.com> | 2020-07-27 09:16:26 +0200 |
| commit | 6f01384cb2d60db4b5990085422711c0a764ed7f (patch) | |
| tree | dbdec53dd3a92957a4d6c9ceba833f5fd52d57d0 /lua | |
| parent | Dart highlights: add documentation_comment (diff) | |
| download | nvim-treesitter-6f01384cb2d60db4b5990085422711c0a764ed7f.tar nvim-treesitter-6f01384cb2d60db4b5990085422711c0a764ed7f.tar.gz nvim-treesitter-6f01384cb2d60db4b5990085422711c0a764ed7f.tar.bz2 nvim-treesitter-6f01384cb2d60db4b5990085422711c0a764ed7f.tar.lz nvim-treesitter-6f01384cb2d60db4b5990085422711c0a764ed7f.tar.xz nvim-treesitter-6f01384cb2d60db4b5990085422711c0a764ed7f.tar.zst nvim-treesitter-6f01384cb2d60db4b5990085422711c0a764ed7f.zip | |
Parsers: add reStructuredText
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim-treesitter/highlight.lua | 9 | ||||
| -rw-r--r-- | lua/nvim-treesitter/parsers.lua | 7 |
2 files changed, 16 insertions, 0 deletions
diff --git a/lua/nvim-treesitter/highlight.lua b/lua/nvim-treesitter/highlight.lua index a56b0d7a9..6058d52c6 100644 --- a/lua/nvim-treesitter/highlight.lua +++ b/lua/nvim-treesitter/highlight.lua @@ -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) diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index 9ee71bc8a..1662629ed 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -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 = { |
