aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/edoc/injections.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/edoc/injections.scm')
-rw-r--r--runtime/queries/edoc/injections.scm20
1 files changed, 20 insertions, 0 deletions
diff --git a/runtime/queries/edoc/injections.scm b/runtime/queries/edoc/injections.scm
new file mode 100644
index 00000000..9630995b
--- /dev/null
+++ b/runtime/queries/edoc/injections.scm
@@ -0,0 +1,20 @@
+((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))