mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 09:20:06 +08:00
35 lines
748 B
Scheme
35 lines
748 B
Scheme
(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))
|