mirror of
https://github.com/nvim-treesitter/nvim-treesitter
synced 2024-09-16 14:34:05 +02:00
feat(bash): readline injections (#6947)
* feat(bash): Readline injections * Update queries/bash/injections.scm Co-authored-by: Riley Bruins <ribru17@hotmail.com> --------- Co-authored-by: Riley Bruins <ribru17@hotmail.com>
This commit is contained in:
parent
4e387dd478
commit
b3c54c3188
1 changed files with 12 additions and 0 deletions
|
@ -65,3 +65,15 @@
|
|||
(#eq? @_command "printf")
|
||||
(#eq? @_arg "--")
|
||||
(#set! injection.language "printf"))
|
||||
|
||||
((command
|
||||
name: (command_name) @_command
|
||||
.
|
||||
argument: [
|
||||
(string)
|
||||
(raw_string)
|
||||
] @injection.content)
|
||||
(#eq? @_command "bind")
|
||||
(#offset! @injection.content 0 1 0 -1)
|
||||
(#set! injection.include-children)
|
||||
(#set! injection.language "readline"))
|
||||
|
|
Loading…
Reference in a new issue