2021-01-06 14:25:43 -05:00
|
|
|
(macro_invocation
|
|
|
|
|
(token_tree) @rust)
|
|
|
|
|
|
|
|
|
|
(macro_definition
|
|
|
|
|
(macro_rule
|
|
|
|
|
left: (token_tree_pattern) @rust
|
|
|
|
|
right: (token_tree) @rust))
|
2021-03-12 11:21:46 -05:00
|
|
|
|
|
|
|
|
[
|
|
|
|
|
(line_comment)
|
|
|
|
|
(block_comment)
|
2021-04-30 13:22:12 -05:00
|
|
|
] @comment
|
2021-06-20 21:20:50 +03:00
|
|
|
|
|
|
|
|
(
|
|
|
|
|
(macro_invocation
|
|
|
|
|
macro: ((identifier) @_html_def)
|
|
|
|
|
(token_tree) @html)
|
|
|
|
|
|
|
|
|
|
(#eq? @_html_def "html")
|
|
|
|
|
)
|
|
|
|
|
|
2021-12-13 20:59:19 +01:00
|
|
|
(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))
|