Skip to content

Commit

Permalink
feat: add taskwarrior to languages so task N edit is nice (helix-ed…
Browse files Browse the repository at this point in the history
…itor#3468)

Co-authored-by: Michael Davis <[email protected]>
  • Loading branch information
AlexanderBrevig and the-mikedavis committed Aug 29, 2022
1 parent 2c61d8e commit fbe9477
Show file tree
Hide file tree
Showing 4 changed files with 20 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 @@ -99,6 +99,7 @@
| svelte || || `svelteserver` |
| swift || | | `sourcekit-lsp` |
| tablegen |||| |
| task || | | |
| tfvars | | | | `terraform-ls` |
| toml || | | `taplo` |
| tsq || | | |
Expand Down
13 changes: 13 additions & 0 deletions languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1640,3 +1640,16 @@ language-server = { command = "slint-lsp", args = [] }
[[grammar]]
name = "slint"
source = { git = "https://github.com/jrmoulton/tree-sitter-slint", rev = "0d4dda94f96623302dfc234e06be62a5717f47da" }

[[language]]
name = "task"
scope = "source.task"
injection-regex = "task"
file-types = ["task"]
roots = []
comment-token = "#"
indent = { tab-width = 2, unit = " " }

[[grammar]]
name = "task"
source = { git = "https://github.com/alexanderbrevig/tree-sitter-task", rev = "f2cb435c5dbf3ee19493e224485d977cb2d36d8b" }
4 changes: 4 additions & 0 deletions runtime/queries/task/highlights.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(comment) @comment
(datetime) @type
(identifier) @variable
(keyword) @keyword
2 changes: 2 additions & 0 deletions runtime/queries/task/injections.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))

0 comments on commit fbe9477

Please sign in to comment.