Elixir: inject Markdown into docs, remove h sigil HEEx injection (#2619)

Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
pull/2625/head
Clay 3 years ago committed by GitHub
parent eba82250bb
commit fc8c488322
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -11,6 +11,15 @@
((sigil ((sigil
(sigil_name) @_sigil_name (sigil_name) @_sigil_name
(quoted_content) @injection.content) (quoted_content) @injection.content)
(#match? @_sigil_name "^(h|H)$") (#eq? @_sigil_name "H")
(#set! injection.language "heex") (#set! injection.language "heex")
(#set! injection.combined)) (#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"))

Loading…
Cancel
Save