From 202cbc10ad1ac3619b649beae32c2349aa241577 Mon Sep 17 00:00:00 2001 From: Arnar Gauti Ingason Date: Mon, 28 Feb 2022 14:07:23 +0100 Subject: [PATCH] parsers: Add todotxt parser --- lua/nvim-treesitter/parsers.lua | 11 +++++++++++ queries/todotxt/highlights.scm | 6 ++++++ 2 files changed, 17 insertions(+) create mode 100644 queries/todotxt/highlights.scm 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)