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:
Omar Valdez 2024-07-19 21:53:27 -07:00 committed by GitHub
parent 4e387dd478
commit b3c54c3188
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"))