Skip to content

Commit

Permalink
feat: add todo.txt tree-sitter (helix-editor#7835)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan9103 authored and Schuyler Mortimer committed Jul 10, 2024
1 parent 9e1462b commit d2a35b9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions book/src/generated/lang-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
| tablegen |||| |
| task || | | |
| tfvars || || `terraform-ls` |
| todotxt || | | |
| toml || | | `taplo` |
| tsq || | | |
| tsx |||| `typescript-language-server` |
Expand Down
11 changes: 11 additions & 0 deletions languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 6 additions & 0 deletions runtime/queries/todotxt/highlights.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
(done_task) @comment
(task (priority) @keyword)
(task (date) @comment)
(task (kv) @comment)
(task (project) @string)
(task (context) @type)

0 comments on commit d2a35b9

Please sign in to comment.