helix-mods/runtime/queries/edoc/injections.scm
Michael Davis 42d780b103
add tree-sitter-edoc (#2640)
* add tree-sitter-edoc

* fix escape character capture in markdown queries

* add field negation operator "!" to tsq highlights
2022-06-03 07:41:17 +08:00

20 lines
496 B
Scheme

((xhtml_tag) @injection.content
(#set! injection.combined)
(#set! injection.include-children)
(#set! injection.language "html"))
((block_quote
!language
(quote_content) @injection.content)
(#set! injection.language "erlang"))
(block_quote
language: (language_identifier) @injection.language
(quote_content) @injection.content)
((macro
(tag) @_tag
(argument) @injection.content)
(#eq? @_tag "@type")
(#set injection.language "erlang")
(#set injection.include-children))