Skip to content

Commit 7937d3b

Browse files
authored
Add support for BASH injections (#89)
1 parent 5c22791 commit 7937d3b

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

queries/injections.scm

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@
3838
(#set! injection.language "python")
3939
(#set! injection.combined))
4040

41+
; Bash
42+
((sigil
43+
(sigil_name) @_sigil_name
44+
(quoted_content) @injection.content)
45+
(#eq? @_sigil_name "BASH")
46+
(#set! injection.language "bash")
47+
(#set! injection.combined))
48+
4149
; JavaScript
4250
((sigil
4351
(sigil_name) @_sigil_name

0 commit comments

Comments
 (0)