diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index 8b7ebc04c..3c8cc8daf 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -411,6 +411,17 @@ list.c_sharp = { maintainers = { "@Luxed" }, } +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, +} + list.typescript = { install_info = { url = "https://github.com/tree-sitter/tree-sitter-typescript", diff --git a/queries/todotxt/highlights.scm b/queries/todotxt/highlights.scm new file mode 100644 index 000000000..37f91b8a7 --- /dev/null +++ b/queries/todotxt/highlights.scm @@ -0,0 +1,6 @@ +(done_task) @comment +(task (priority) @keyword) +(task (date) @comment) +(task (kv) @comment) +(task (project) @string) +(task (context) @type)