mirror of https://github.com/helix-editor/helix
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
528 B
Scheme
18 lines
528 B
Scheme
((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"))
|