on master help sign in
Elixir: inject Markdown into docs, remove h sigil HEEx injection (#2619)

Co-authored-by: Michael Davis <mcarsondavis@gmail.com>

commitfc8c48832257672b92a1b3c08b79c6cbffad1761 authorClay <connorlay@users.noreply.github.com> dateMon 30 May 2022, 19:32 (4 years ago) parenteba8225
1 file changed+10−1
runtime/queries/elixir/injections.scm+10−1
runtime/queries/elixir/injections.scm+10−1
@@ -11,6 +11,15 @@
1111((sigil
1212 (sigil_name) @_sigil_name
1313 (quoted_content) @injection.content)
14− (#match? @_sigil_name "^(h|H)$")
14+ (#eq? @_sigil_name "H")
1515 (#set! injection.language "heex")
1616 (#set! injection.combined))
17+
18+(unary_operator
19+ operator: "@"
20+ operand: (call
21+ target: ((identifier) @_identifier (#match? @_identifier "^(module|type|short)?doc$"))
22+ (arguments [
23+ (string (quoted_content) @injection.content)
24+ (sigil (quoted_content) @injection.content)
25+ ])) (#set! injection.language "markdown"))