mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 19:30:02 -04:00
chore: query formatting
This commit is contained in:
parent
79975d6557
commit
57a8acf0c4
674 changed files with 18466 additions and 12648 deletions
|
|
@ -1,9 +1,10 @@
|
|||
(macro_invocation
|
||||
(token_tree) @injection.content (#set! injection.language "rust"))
|
||||
(token_tree) @injection.content
|
||||
(#set! injection.language "rust"))
|
||||
|
||||
(macro_definition
|
||||
(macro_rule
|
||||
left: (token_tree_pattern) @injection.content
|
||||
left: (token_tree_pattern) @injection.content
|
||||
(#set! injection.language "rust")))
|
||||
|
||||
(macro_definition
|
||||
|
|
@ -15,28 +16,39 @@
|
|||
(line_comment)
|
||||
(block_comment)
|
||||
] @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
((macro_invocation
|
||||
macro: ((identifier) @injection.language)
|
||||
(token_tree) @injection.content)
|
||||
(#eq? @injection.language "html"))
|
||||
macro:
|
||||
((identifier) @injection.language)
|
||||
(token_tree) @injection.content)
|
||||
(#eq? @injection.language "html"))
|
||||
|
||||
(call_expression
|
||||
function: (scoped_identifier
|
||||
path: (identifier) @_regex (#eq? @_regex "Regex")
|
||||
name: (identifier) @_new (#eq? @_new "new"))
|
||||
arguments: (arguments
|
||||
(raw_string_literal) @injection.content)
|
||||
(#set! injection.language "regex"))
|
||||
function:
|
||||
(scoped_identifier
|
||||
path: (identifier) @_regex
|
||||
(#eq? @_regex "Regex")
|
||||
name: (identifier) @_new
|
||||
(#eq? @_new "new"))
|
||||
arguments:
|
||||
(arguments
|
||||
(raw_string_literal) @injection.content)
|
||||
(#set! injection.language "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) @injection.content)
|
||||
(#set! injection.language "regex"))
|
||||
function:
|
||||
(scoped_identifier
|
||||
path:
|
||||
(scoped_identifier
|
||||
(identifier) @_regex
|
||||
(#eq? @_regex "Regex") .)
|
||||
name: (identifier) @_new
|
||||
(#eq? @_new "new"))
|
||||
arguments:
|
||||
(arguments
|
||||
(raw_string_literal) @injection.content)
|
||||
(#set! injection.language "regex"))
|
||||
|
||||
((block_comment) @injection.content
|
||||
(#match? @injection.content "/\\*!([a-zA-Z]+:)?re2c")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue