mirror of
https://github.com/helix-editor/helix
synced 2026-08-05 14:42:57 +02:00
12 lines
390 B
Scheme
12 lines
390 B
Scheme
; Parse general comment tags
|
|
|
|
((document) @injection.content
|
|
(#set! injection.include-children)
|
|
(#set! injection.language "comment"))
|
|
|
|
; Fenced code blocks inside doc comments (e.g. ```js in @example): highlight
|
|
; the body with the language named in the fence.
|
|
((code_block
|
|
(code_block_language) @injection.language
|
|
(code_block_line) @injection.content)
|
|
(#set! injection.combined)) |