fix(nix): make all bash injections combined

This commit is contained in:
stefan 2026-01-28 15:55:38 -08:00 committed by Christian Clason
parent 5465196ba8
commit cc12e37e5b
2 changed files with 10 additions and 5 deletions

View file

@ -48,7 +48,8 @@
((string_fragment) @injection.content ((string_fragment) @injection.content
(#set! injection.language "bash"))) (#set! injection.language "bash")))
] ]
(#lua-match? @_path "^%a+Phase$")) (#lua-match? @_path "^%a+Phase$")
(#set! injection.combined))
(binding (binding
attrpath: (attrpath attrpath: (attrpath
@ -61,7 +62,8 @@
((string_fragment) @injection.content ((string_fragment) @injection.content
(#set! injection.language "bash"))) (#set! injection.language "bash")))
] ]
(#lua-match? @_path "^pre%a+$")) (#lua-match? @_path "^pre%a+$")
(#set! injection.combined))
(binding (binding
attrpath: (attrpath attrpath: (attrpath
@ -74,7 +76,8 @@
((string_fragment) @injection.content ((string_fragment) @injection.content
(#set! injection.language "bash"))) (#set! injection.language "bash")))
] ]
(#lua-match? @_path "^post%a+$")) (#lua-match? @_path "^post%a+$")
(#set! injection.combined))
(binding (binding
attrpath: (attrpath attrpath: (attrpath
@ -87,7 +90,8 @@
((string_fragment) @injection.content ((string_fragment) @injection.content
(#set! injection.language "bash"))) (#set! injection.language "bash")))
] ]
(#lua-match? @_path "^script$")) (#lua-match? @_path "^script$")
(#set! injection.combined))
(apply_expression (apply_expression
function: (_) @_func function: (_) @_func

View file

@ -9,7 +9,8 @@ in {
drv1 = stdenv.mkDerivation { drv1 = stdenv.mkDerivation {
buildPhase = "mkdir $out"; buildPhase = "mkdir $out";
installPhase = '' installPhase = ''
echo "bar" > $out/foo.txt echo "${bar}" > $out/foo.txt
echo "baz"" >> $out/foo.txt
''; '';
}; };