Open
Description
Hi, I would like to contribute with an injection for Hyperscript.
It is an embedded language that should be put inside the _
tag.
Here is a Treesitter grammar: https://github.com/dz4k/tree-sitter-_hyperscript
I came up with this query to inject it:
((attribute
(attribute_name) @name
(quoted_attribute_value
(attribute_value) @value))
(#eq? @name "_"))
I would like to open a PR, but I am a bit lost.
After looking at the injection file, I assume that what I should put there is:
((attribute
(attribute_name) @name
(quoted_attribute_value
(attribute_value) @value))
(#eq? @name "_")
(#set! injection.language "_hyperscript"))
Am I right? Any feedback is appreciated.
Metadata
Metadata
Assignees
Labels
No labels