From fc8c48832257672b92a1b3c08b79c6cbffad1761 Mon Sep 17 00:00:00 2001 From: Clay Date: Mon, 30 May 2022 19:32:14 -0700 Subject: [PATCH] Elixir: inject Markdown into docs, remove h sigil HEEx injection (#2619) Co-authored-by: Michael Davis --- runtime/queries/elixir/injections.scm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/runtime/queries/elixir/injections.scm b/runtime/queries/elixir/injections.scm index c88825344..5c58a8630 100644 --- a/runtime/queries/elixir/injections.scm +++ b/runtime/queries/elixir/injections.scm @@ -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"))