| 1 | ((line_comment (comment_content) @injection.content) |
| 2 | (#set! injection.language "edoc") |
| 3 | (#set! injection.include-children) |
| 4 | (#set! injection.combined)) |
| 5 | |
| 6 | ((comment (comment_content) @injection.content) |
| 7 | (#set! injection.language "comment")) |
| 8 | |
| 9 | ; EEP-59 doc attributes use markdown by default. |
| 10 | (attribute |
| 11 | name: (atom) @_attribute |
| 12 | (arguments [ |
| 13 | (string (quoted_content) @injection.content) |
| 14 | (sigil (quoted_content) @injection.content) |
| 15 | ]) |
| 16 | (#set! injection.language "markdown") |
| 17 | (#any-of? @_attribute "doc" "moduledoc")) |