2021-04-09 10:42:49 +02:00
|
|
|
((text) @injection.content
|
|
|
|
(#set! injection.language "html")
|
|
|
|
(#set! injection.combined))
|
2022-01-20 16:50:06 +01:00
|
|
|
|
|
|
|
((comment) @injection.content
|
|
|
|
(#set! injection.language "comment"))
|
2023-03-10 23:56:18 +01:00
|
|
|
|
|
|
|
((function_call_expression
|
|
|
|
function: (name) @_function
|
|
|
|
arguments: (arguments . (argument (_ (string_value) @injection.content))))
|
|
|
|
(#match? @_function "^preg_")
|
|
|
|
(#set! injection.language "regex"))
|
|
|
|
|
|
|
|
((function_call_expression
|
|
|
|
function: (name) @_function
|
|
|
|
arguments: (arguments (_) (argument (_ (string_value) @injection.content))))
|
|
|
|
(#match? @_function "^mysqli_")
|
|
|
|
(#set! injection.language "sql"))
|
|
|
|
|
|
|
|
((member_call_expression
|
|
|
|
object: (_)
|
|
|
|
name: (name) @_function
|
|
|
|
arguments: (arguments . (argument (_ (string_value) @injection.content))))
|
|
|
|
(#match? @_function "^(prepare|query)$")
|
|
|
|
(#set! injection.language "sql"))
|