mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-07 14:00:00 -04:00
chore: query formatting
This commit is contained in:
parent
79975d6557
commit
57a8acf0c4
674 changed files with 18466 additions and 12648 deletions
|
|
@ -1,12 +1,19 @@
|
|||
(identifier) @variable
|
||||
(pipe_sequence "|" @operator)
|
||||
|
||||
(pipe_sequence
|
||||
"|" @operator)
|
||||
|
||||
(string) @string
|
||||
|
||||
(number) @number
|
||||
|
||||
(pipe_call
|
||||
name: (identifier) @function)
|
||||
|
||||
(pipe_call
|
||||
arguments: (pipe_arguments
|
||||
(identifier) @variable.parameter))
|
||||
arguments:
|
||||
(pipe_arguments
|
||||
(identifier) @variable.parameter))
|
||||
|
||||
(structural_assignment
|
||||
operator: (identifier) @keyword)
|
||||
|
|
@ -18,32 +25,34 @@
|
|||
function: (identifier) @function)
|
||||
|
||||
(call_expression
|
||||
function: ((identifier) @function.builtin
|
||||
(#eq? @function.builtin "$any")))
|
||||
function:
|
||||
((identifier) @function.builtin
|
||||
(#eq? @function.builtin "$any")))
|
||||
|
||||
[
|
||||
"let"
|
||||
"as"
|
||||
"let"
|
||||
"as"
|
||||
] @keyword
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"["
|
||||
"]"
|
||||
"{"
|
||||
"}"
|
||||
"("
|
||||
")"
|
||||
"["
|
||||
"]"
|
||||
"{"
|
||||
"}"
|
||||
] @punctuation.bracket
|
||||
|
||||
[
|
||||
";"
|
||||
"."
|
||||
","
|
||||
"?."
|
||||
";"
|
||||
"."
|
||||
","
|
||||
"?."
|
||||
] @punctuation.delimiter
|
||||
|
||||
((identifier) @boolean
|
||||
(#any-of? @boolean "true" "false"))
|
||||
|
||||
((identifier) @variable.builtin
|
||||
(#any-of? @variable.builtin "this" "\$event" "null"))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue