aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/erlang/injections.scm
blob: 798882f538a9dc4b64ca277069d4861317e1c19e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
((line_comment (comment_content) @injection.content)
 (#set! injection.language "edoc")
 (#set! injection.include-children)
 (#set! injection.combined))

((comment (comment_content) @injection.content)
 (#set! injection.language "comment"))

; EEP-59 doc attributes use markdown by default.
(attribute
  name: (atom) @_attribute
  (arguments [
    (string (quoted_content) @injection.content)
    (sigil (quoted_content) @injection.content)
  ])
 (#set! injection.language "markdown")
 (#any-of? @_attribute "doc" "moduledoc"))