1
0
mirror of https://github.com/helix-editor/helix synced 2026-03-07 20:46:21 +01:00
helix/runtime/queries/amber/injections.scm
2025-12-07 12:44:29 +09:00

15 lines
452 B
Scheme

; Inject bash into command content
((command_content) @injection.content
(#set! injection.language "bash"))
; Inject markdown into documentation comments (///)
((comment) @injection.content
(#match? @injection.content "^///")
(#set! injection.language "markdown")
(#set! injection.combined))
; Regular comments (excluding doc comments)
((comment) @injection.content
(#not-match? @injection.content "^///")
(#set! injection.language "comment"))