blob: 4e04e54d37b996f9b7196b2161f5219b1e040dc9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
(call_expr
function: (selector_expr
(identifier) @_regex)
arguments: (argument_list
(_)
.
(string
(string_content) @injection.content))
(#eq? @_regex "regex")
(#set! injection.language "regex"))
(call_expr
function: (selector_expr
(identifier) @_regex
(select_suffix
(identifier) @_fn
(#eq? @_fn "compile")))
arguments: (argument_list
.
(string
(string_content) @injection.content))
(#eq? @_regex "regex")
(#set! injection.language "regex"))
((comment) @injection.content
(#set! injection.language "comment"))
|