mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -04:00
feat(hyprlang): bash injections for exec keybindings
This commit is contained in:
parent
4423f30539
commit
645d14f40f
1 changed files with 15 additions and 0 deletions
|
|
@ -4,3 +4,18 @@
|
||||||
(exec
|
(exec
|
||||||
(string) @injection.content
|
(string) @injection.content
|
||||||
(#set! injection.language "bash"))
|
(#set! injection.language "bash"))
|
||||||
|
|
||||||
|
((keyword
|
||||||
|
(name) @_bind
|
||||||
|
(params
|
||||||
|
.
|
||||||
|
(_)
|
||||||
|
.
|
||||||
|
(_)
|
||||||
|
.
|
||||||
|
(string) @_exec
|
||||||
|
.
|
||||||
|
(string) @injection.content))
|
||||||
|
(#lua-match? @_bind "^bind")
|
||||||
|
(#lua-match? @_exec "^%s*exec%s*$")
|
||||||
|
(#set! injection.language "bash"))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue