mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -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
|
||||
(#set! injection.language "bash")))
|
||||
]
|
||||
(#lua-match? @_path "^%a+Phase$"))
|
||||
(#lua-match? @_path "^%a+Phase$")
|
||||
(#set! injection.combined))
|
||||
|
||||
(binding
|
||||
attrpath: (attrpath
|
||||
|
|
@ -61,7 +62,8 @@
|
|||
((string_fragment) @injection.content
|
||||
(#set! injection.language "bash")))
|
||||
]
|
||||
(#lua-match? @_path "^pre%a+$"))
|
||||
(#lua-match? @_path "^pre%a+$")
|
||||
(#set! injection.combined))
|
||||
|
||||
(binding
|
||||
attrpath: (attrpath
|
||||
|
|
@ -74,7 +76,8 @@
|
|||
((string_fragment) @injection.content
|
||||
(#set! injection.language "bash")))
|
||||
]
|
||||
(#lua-match? @_path "^post%a+$"))
|
||||
(#lua-match? @_path "^post%a+$")
|
||||
(#set! injection.combined))
|
||||
|
||||
(binding
|
||||
attrpath: (attrpath
|
||||
|
|
@ -87,7 +90,8 @@
|
|||
((string_fragment) @injection.content
|
||||
(#set! injection.language "bash")))
|
||||
]
|
||||
(#lua-match? @_path "^script$"))
|
||||
(#lua-match? @_path "^script$")
|
||||
(#set! injection.combined))
|
||||
|
||||
(apply_expression
|
||||
function: (_) @_func
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue