mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
parsers: Add todotxt parser
This commit is contained in:
parent
4d75800991
commit
202cbc10ad
2 changed files with 17 additions and 0 deletions
|
|
@ -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",
|
||||
|
|
|
|||
6
queries/todotxt/highlights.scm
Normal file
6
queries/todotxt/highlights.scm
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
(done_task) @comment
|
||||
(task (priority) @keyword)
|
||||
(task (date) @comment)
|
||||
(task (kv) @comment)
|
||||
(task (project) @string)
|
||||
(task (context) @type)
|
||||
Loading…
Add table
Add a link
Reference in a new issue