AutoYADM commit: 2025-02-19 02:30:07

This commit is contained in:
Daniel Fichtinger 2025-02-19 02:30:07 -05:00
parent 7f2083abd2
commit 1c0cfd290d
4 changed files with 39 additions and 0 deletions

View file

@ -90,3 +90,12 @@ file-types = ["eml"]
name = "mail" name = "mail"
source.path = "/home/fic/dev/tree-sitter-mail" source.path = "/home/fic/dev/tree-sitter-mail"
# source = { git = "https://github.com/stevenxxiu/tree-sitter-mail", rev = "e3d63ac2093e22777cb30d70b9264f48814622ad" } # source = { git = "https://github.com/stevenxxiu/tree-sitter-mail", rev = "e3d63ac2093e22777cb30d70b9264f48814622ad" }
[[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" }

Binary file not shown.

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