chore: query formatting

This commit is contained in:
Pham Huy Hoang 2024-01-06 15:05:50 +09:00 committed by Christian Clason
parent 79975d6557
commit 57a8acf0c4
674 changed files with 18466 additions and 12648 deletions

View file

@ -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

View file

@ -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))

View file

@ -1,4 +1,4 @@
(nonterminal_name
(nonterminal_name
(macro_id) @local.definition.function)
(nonterminal_name