mirror of https://github.com/helix-editor/helix
Merge 18030d5681
into f4b488e380
commit
0748ff4cf8
|
@ -232,6 +232,7 @@
|
|||
| teal | ✓ | | | `teal-language-server` |
|
||||
| templ | ✓ | | | `templ` |
|
||||
| tera | ✓ | | | |
|
||||
| test | ✓ | | | |
|
||||
| textproto | ✓ | ✓ | ✓ | |
|
||||
| tfvars | ✓ | | ✓ | `terraform-ls` |
|
||||
| thrift | ✓ | | | |
|
||||
|
|
|
@ -4229,6 +4229,15 @@ indent = { tab-width = 2, unit = " " }
|
|||
name = "ghostty"
|
||||
source = { git = "https://github.com/bezhermoso/tree-sitter-ghostty" , rev = "8438a93b44367e962b2ea3a3b6511885bebd196a" }
|
||||
|
||||
[[language]]
|
||||
name = "test"
|
||||
scope = "source.test"
|
||||
file-types = [{ glob = "test/corpus/*.txt" }]
|
||||
|
||||
[[grammar]]
|
||||
name = "test"
|
||||
source = { git = "https://github.com/tree-sitter-grammars/tree-sitter-test", rev = "93746e2e387ae757d21088ab0ab5657efffb973e" }
|
||||
|
||||
[[language]]
|
||||
name = "tera"
|
||||
scope = "source.tera"
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
(name) @markup.heading.1
|
||||
|
||||
(attribute) @attribute
|
||||
|
||||
(attribute
|
||||
language: (parameter) @string)
|
||||
|
||||
(attribute
|
||||
platform: (parameter) @constant.builtin)
|
||||
|
||||
[
|
||||
(separator)
|
||||
")"
|
||||
"("
|
||||
] @punctuation
|
|
@ -0,0 +1,15 @@
|
|||
(test
|
||||
(header
|
||||
(name)
|
||||
(attributes
|
||||
. ; skip over non-language attributes
|
||||
(attribute
|
||||
!language)*
|
||||
. ; select only the first language attribute
|
||||
(attribute
|
||||
language: (parameter) @injection.language)))
|
||||
(input) @injection.content)
|
||||
|
||||
((test
|
||||
(output) @injection.content)
|
||||
(#set! injection.language "tsq"))
|
Loading…
Reference in New Issue