Skip to content

Commit

Permalink
Elixir: inject Markdown into docs, remove h sigil HEEx injection (#2619)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
  • Loading branch information
connorlay and the-mikedavis authored May 31, 2022
1 parent eba8225 commit fc8c488
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion runtime/queries/elixir/injections.scm
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@
((sigil
(sigil_name) @_sigil_name
(quoted_content) @injection.content)
(#match? @_sigil_name "^(h|H)$")
(#eq? @_sigil_name "H")
(#set! injection.language "heex")
(#set! injection.combined))

(unary_operator
operator: "@"
operand: (call
target: ((identifier) @_identifier (#match? @_identifier "^(module|type|short)?doc$"))
(arguments [
(string (quoted_content) @injection.content)
(sigil (quoted_content) @injection.content)
])) (#set! injection.language "markdown"))

0 comments on commit fc8c488

Please sign in to comment.