mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-25 02:46:17 +04:00
feat: add taskwarrior to languages so task N edit
is nice (#3468)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
This commit is contained in:
parent
9b0fd51318
commit
aef00a3ab6
@ -99,6 +99,7 @@
|
||||
| svelte | ✓ | | ✓ | `svelteserver` |
|
||||
| swift | ✓ | | | `sourcekit-lsp` |
|
||||
| tablegen | ✓ | ✓ | ✓ | |
|
||||
| task | ✓ | | | |
|
||||
| tfvars | | | | `terraform-ls` |
|
||||
| toml | ✓ | | | `taplo` |
|
||||
| tsq | ✓ | | | |
|
||||
|
@ -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
runtime/queries/task/highlights.scm
Normal file
4
runtime/queries/task/highlights.scm
Normal file
@ -0,0 +1,4 @@
|
||||
(comment) @comment
|
||||
(datetime) @type
|
||||
(identifier) @variable
|
||||
(keyword) @keyword
|
2
runtime/queries/task/injections.scm
Normal file
2
runtime/queries/task/injections.scm
Normal file
@ -0,0 +1,2 @@
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
Loading…
Reference in New Issue
Block a user