Files
helix/runtime/queries/jsdoc/injections.scm
2026-05-31 21:25:42 +09:00

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))