19 lines
410 B
Scheme
19 lines
410 B
Scheme
(call
|
|
function: (attribute
|
|
object: (identifier) @_re)
|
|
arguments: (argument_list
|
|
.
|
|
(string
|
|
(string_content) @injection.content))
|
|
(#eq? @_re "re")
|
|
(#set! injection.language "regex"))
|
|
|
|
((binary_operator
|
|
left: (string
|
|
(string_content) @injection.content)
|
|
operator: "%")
|
|
(#set! injection.language "printf"))
|
|
|
|
((comment) @injection.content
|
|
(#set! injection.language "comment"))
|