2023-05-03 19:07:59 +09:00
|
|
|
((comment) @injection.content
|
|
|
|
|
(#set! injection.language "comment"))
|
2022-11-26 14:27:21 +02:00
|
|
|
|
2023-08-23 13:02:41 +03:00
|
|
|
((regex) @injection.content
|
|
|
|
|
(#set! injection.language "regex"))
|
2023-08-11 15:24:48 +03:00
|
|
|
|
2023-08-23 13:02:41 +03:00
|
|
|
((heredoc_redirect
|
2023-08-26 05:06:54 -04:00
|
|
|
(heredoc_body) @injection.content
|
2023-08-23 13:02:41 +03:00
|
|
|
(heredoc_end) @injection.language)
|
|
|
|
|
(#downcase! @injection.language))
|
2023-08-19 19:28:45 +03:00
|
|
|
|
|
|
|
|
; printf 'format'
|
|
|
|
|
((command
|
|
|
|
|
name: (command_name) @_command
|
|
|
|
|
. argument: [(string) (raw_string)] @injection.content)
|
|
|
|
|
(#eq? @_command "printf")
|
|
|
|
|
(#set! injection.language "printf"))
|
|
|
|
|
|
|
|
|
|
; printf -v var 'format'
|
|
|
|
|
((command
|
|
|
|
|
name: (command_name) @_command
|
|
|
|
|
argument: (word) @_arg
|
|
|
|
|
. (_) . argument: [(string) (raw_string)] @injection.content)
|
|
|
|
|
(#eq? @_command "printf")
|
|
|
|
|
(#eq? @_arg "-v")
|
|
|
|
|
(#set! injection.language "printf"))
|
|
|
|
|
|
|
|
|
|
; printf -- 'format'
|
|
|
|
|
((command
|
|
|
|
|
name: (command_name) @_command
|
|
|
|
|
argument: (word) @_arg
|
|
|
|
|
. argument: [(string) (raw_string)] @injection.content)
|
|
|
|
|
(#eq? @_command "printf")
|
|
|
|
|
(#eq? @_arg "--")
|
|
|
|
|
(#set! injection.language "printf"))
|