mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
fix(nix): make all bash injections combined
This commit is contained in:
parent
5465196ba8
commit
cc12e37e5b
2 changed files with 10 additions and 5 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue