mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 01:16:18 +04:00
feat: add todo.txt tree-sitter (#7835)
This commit is contained in:
parent
cb9b08d650
commit
c0eae84073
@ -149,6 +149,7 @@
|
||||
| tablegen | ✓ | ✓ | ✓ | |
|
||||
| task | ✓ | | | |
|
||||
| tfvars | ✓ | | ✓ | `terraform-ls` |
|
||||
| todotxt | ✓ | | | |
|
||||
| toml | ✓ | | | `taplo` |
|
||||
| tsq | ✓ | | | |
|
||||
| tsx | ✓ | ✓ | ✓ | `typescript-language-server` |
|
||||
|
@ -2736,3 +2736,14 @@ indent = { tab-width = 4, unit = " " }
|
||||
name = "unison"
|
||||
source = { git = "https://github.com/kylegoetz/tree-sitter-unison", rev = "98c4e8bc5c9f5989814a720457cf36963cf4043d" }
|
||||
|
||||
[[language]]
|
||||
name = "todotxt"
|
||||
scope = "text.todotxt"
|
||||
file-types = [{ suffix = ".todo.txt" }, "todotxt"]
|
||||
roots = []
|
||||
formatter = { command = "sort" }
|
||||
auto-format = true
|
||||
|
||||
[[grammar]]
|
||||
name = "todotxt"
|
||||
source = { git = "https://github.com/arnarg/tree-sitter-todotxt", rev = "0207f6a4ab6aeafc4b091914d31d8235049a2578" }
|
||||
|
6
runtime/queries/todotxt/highlights.scm
Normal file
6
runtime/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…
Reference in New Issue
Block a user