queries/dockerfile: injections for heredocs (#13852)

pull/13581/merge
Jonas Köhnen 2025-06-28 23:59:32 +02:00 committed by GitHub
parent 930340e646
commit d654a07d3d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 0 deletions

View File

@ -5,3 +5,12 @@
(#set! injection.language "bash")
(#set! injection.combined))
((run_instruction
(heredoc_block (heredoc_line) @injection.content . "\n" @injection.content))
(#set! injection.language "bash")
(#set! injection.combined))
((copy_instruction
(path (heredoc_marker)) . (path) @injection.filename
(heredoc_block (heredoc_line) @injection.content . "\n" @injection.content))
(#set! injection.combined))