2023-08-14 10:50:59 -05:00
|
|
|
(call
|
2024-03-21 20:44:35 +09:00
|
|
|
function: (attribute
|
|
|
|
|
object: (identifier) @_re)
|
|
|
|
|
arguments: (argument_list
|
|
|
|
|
(string
|
|
|
|
|
(string_content) @injection.content))
|
2023-08-14 10:50:59 -05:00
|
|
|
(#eq? @_re "re")
|
|
|
|
|
(#set! injection.language "regex"))
|
2021-02-05 10:01:50 -05:00
|
|
|
|
2025-10-26 17:25:42 +01:00
|
|
|
(call
|
|
|
|
|
function: (attribute
|
|
|
|
|
object: (identifier) @_re)
|
|
|
|
|
arguments: (argument_list
|
|
|
|
|
(concatenated_string
|
|
|
|
|
[
|
|
|
|
|
(string
|
|
|
|
|
(string_content) @injection.content)
|
|
|
|
|
(comment)
|
|
|
|
|
]+))
|
|
|
|
|
(#eq? @_re "re")
|
|
|
|
|
(#set! injection.language "regex"))
|
|
|
|
|
|
2023-08-19 19:28:45 +03:00
|
|
|
((binary_operator
|
2024-03-21 20:44:35 +09:00
|
|
|
left: (string
|
|
|
|
|
(string_content) @injection.content)
|
2023-08-19 19:28:45 +03:00
|
|
|
operator: "%")
|
2024-01-06 15:05:50 +09:00
|
|
|
(#set! injection.language "printf"))
|
2023-08-19 19:28:45 +03:00
|
|
|
|
2023-05-03 19:07:59 +09:00
|
|
|
((comment) @injection.content
|
2024-01-06 15:05:50 +09:00
|
|
|
(#set! injection.language "comment"))
|