feat: add todo.txt tree-sitter (#7835)
commitc0eae84073ccbf09955f546cbad889e7c1487984
authorJan9103 <55753387+Jan9103@users.noreply.github.com>
dateWed 9 Aug 2023, 15:35 (3 years ago)
parentcb9b08d
book/src/generated/lang-support.md+1
@@ -149,6 +149,7 @@
149149| tablegen | ✓ | ✓ | ✓ | |
150150| task | ✓ | | | |
151151| tfvars | ✓ | | ✓ | `terraform-ls` |
152+| todotxt | ✓ | | | |
152153| toml | ✓ | | | `taplo` |
153154| tsq | ✓ | | | |
154155| tsx | ✓ | ✓ | ✓ | `typescript-language-server` |
languages.toml+11
@@ -2736,3 +2736,14 @@ indent = { tab-width = 4, unit = " " }
27362736name = "unison"
27372737source = { git = "https://github.com/kylegoetz/tree-sitter-unison", rev = "98c4e8bc5c9f5989814a720457cf36963cf4043d" }
27382738
2739+[[language]]
2740+name = "todotxt"
2741+scope = "text.todotxt"
2742+file-types = [{ suffix = ".todo.txt" }, "todotxt"]
2743+roots = []
2744+formatter = { command = "sort" }
2745+auto-format = true
2746+
2747+[[grammar]]
2748+name = "todotxt"
2749+source = { git = "https://github.com/arnarg/tree-sitter-todotxt", rev = "0207f6a4ab6aeafc4b091914d31d8235049a2578" }
runtime/queries/todotxt/highlights.scmnew file+6
@@ -0,0 +1,6 @@
1+(done_task) @comment
2+(task (priority) @keyword)
3+(task (date) @comment)
4+(task (kv) @comment)
5+(task (project) @string)
6+(task (context) @type)