Nik Revenco 2025-06-07 12:28:43 +01:00 committed by GitHub
commit 0748ff4cf8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 40 additions and 0 deletions

View File

@ -232,6 +232,7 @@
| teal | ✓ | | | `teal-language-server` |
| templ | ✓ | | | `templ` |
| tera | ✓ | | | |
| test | ✓ | | | |
| textproto | ✓ | ✓ | ✓ | |
| tfvars | ✓ | | ✓ | `terraform-ls` |
| thrift | ✓ | | | |

View File

@ -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"

View File

@ -0,0 +1,15 @@
(name) @markup.heading.1
(attribute) @attribute
(attribute
language: (parameter) @string)
(attribute
platform: (parameter) @constant.builtin)
[
(separator)
")"
"("
] @punctuation

View File

@ -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"))