AutoYADM commit: 2025-02-19 02:30:07
This commit is contained in:
parent
7f2083abd2
commit
1c0cfd290d
4 changed files with 39 additions and 0 deletions
|
@ -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" }
|
||||||
|
|
BIN
.config/helix/runtime/grammars/test.so
Executable file
BIN
.config/helix/runtime/grammars/test.so
Executable file
Binary file not shown.
15
.config/helix/runtime/queries/test/highlights.scm
Normal file
15
.config/helix/runtime/queries/test/highlights.scm
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
(name) @markup.heading.1
|
||||||
|
|
||||||
|
(attribute) @attribute
|
||||||
|
|
||||||
|
(attribute
|
||||||
|
language: (parameter) @string)
|
||||||
|
|
||||||
|
(attribute
|
||||||
|
platform: (parameter) @constant.builtin)
|
||||||
|
|
||||||
|
[
|
||||||
|
(separator)
|
||||||
|
")"
|
||||||
|
"("
|
||||||
|
] @punctuation
|
15
.config/helix/runtime/queries/test/injections.scm
Normal file
15
.config/helix/runtime/queries/test/injections.scm
Normal 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"))
|
Loading…
Add table
Add a link
Reference in a new issue