mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -04:00
chore: query formatting
This commit is contained in:
parent
79975d6557
commit
57a8acf0c4
674 changed files with 18466 additions and 12648 deletions
|
|
@ -13,23 +13,32 @@
|
|||
] @keyword.conditional
|
||||
|
||||
[
|
||||
"+"
|
||||
"*"
|
||||
"?"
|
||||
; TODO: inaccessible node
|
||||
; =>
|
||||
"=>@L"
|
||||
"=>@R"
|
||||
"+"
|
||||
"*"
|
||||
"?"
|
||||
; TODO: inaccessible node
|
||||
; =>
|
||||
"=>@L"
|
||||
"=>@R"
|
||||
] @operator
|
||||
|
||||
(grammar_type_params
|
||||
["<" ">"] @punctuation.bracket)
|
||||
[
|
||||
"<"
|
||||
">"
|
||||
] @punctuation.bracket)
|
||||
|
||||
(symbol
|
||||
["<" ">"] @punctuation.bracket)
|
||||
[
|
||||
"<"
|
||||
">"
|
||||
] @punctuation.bracket)
|
||||
|
||||
(binding_symbol
|
||||
["<" ">"] @punctuation.bracket)
|
||||
[
|
||||
"<"
|
||||
">"
|
||||
] @punctuation.bracket)
|
||||
|
||||
(binding_symbol
|
||||
name: (identifier) @variable.parameter)
|
||||
|
|
@ -50,11 +59,21 @@
|
|||
(nonterminal
|
||||
(type_ref) @type.builtin)
|
||||
|
||||
["(" ")" "[" "]"] @punctuation.bracket
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"["
|
||||
"]"
|
||||
] @punctuation.bracket
|
||||
|
||||
[";" ":"] @punctuation.delimiter
|
||||
[
|
||||
";"
|
||||
":"
|
||||
] @punctuation.delimiter
|
||||
|
||||
(lifetime (identifier) @keyword.storage)
|
||||
(lifetime
|
||||
(identifier) @keyword.storage)
|
||||
|
||||
(string_literal) @string
|
||||
|
||||
(regex_literal) @string
|
||||
|
|
|
|||
|
|
@ -1,11 +1,12 @@
|
|||
([
|
||||
(normal_action)
|
||||
(failible_action)
|
||||
] @injection.content
|
||||
(#set! injection.language "rust"))
|
||||
] @injection.content
|
||||
(#set! injection.language "rust"))
|
||||
|
||||
((use) @injection.content (#set! injection.language "rust"))
|
||||
((use) @injection.content
|
||||
(#set! injection.language "rust"))
|
||||
|
||||
((regex_literal) @injection.content
|
||||
(#set! injection.language "regex")
|
||||
(#offset! @injection.content 0 2 0 -1))
|
||||
(#set! injection.language "regex")
|
||||
(#offset! @injection.content 0 2 0 -1))
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
(nonterminal_name
|
||||
(nonterminal_name
|
||||
(macro_id) @local.definition.function)
|
||||
|
||||
(nonterminal_name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue