blob: fd19fbec2dcd767f76c1cd93c0b2fb3eefe8db2d (
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
27
28
29
30
31
32
33
34
|
(macro_invocation
(token_tree) @rust)
(macro_definition
(macro_rule
left: (token_tree_pattern) @rust
right: (token_tree) @rust))
[
(line_comment)
(block_comment)
] @comment
(
(macro_invocation
macro: ((identifier) @_html_def)
(token_tree) @html)
(#eq? @_html_def "html")
)
(call_expression
function: (scoped_identifier
path: (identifier) @_regex (#eq? @_regex "Regex")
name: (identifier) @_new (#eq? @_new "new"))
arguments: (arguments
(raw_string_literal) @regex))
(call_expression
function: (scoped_identifier
path: (scoped_identifier (identifier) @_regex (#eq? @_regex "Regex").)
name: (identifier) @_new (#eq? @_new "new"))
arguments: (arguments
(raw_string_literal) @regex))
|