mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 10:20:11 -04:00
chore: query formatting
This commit is contained in:
parent
79975d6557
commit
57a8acf0c4
674 changed files with 18466 additions and 12648 deletions
|
|
@ -1,20 +1,16 @@
|
|||
; Includes
|
||||
|
||||
"import" @keyword.import
|
||||
|
||||
; Conditionals
|
||||
|
||||
[
|
||||
"if"
|
||||
"else"
|
||||
] @keyword.conditional
|
||||
|
||||
; Repeats
|
||||
|
||||
"foreach" @keyword.repeat
|
||||
|
||||
; Operators
|
||||
|
||||
[
|
||||
"="
|
||||
"+="
|
||||
|
|
@ -33,19 +29,17 @@
|
|||
] @operator
|
||||
|
||||
; Variables
|
||||
|
||||
(identifier) @variable
|
||||
|
||||
; Functions
|
||||
|
||||
(call_expression function: (identifier) @function.call)
|
||||
(call_expression
|
||||
function: (identifier) @function.call)
|
||||
|
||||
; Fields
|
||||
|
||||
(scope_access field: (identifier) @variable.member)
|
||||
(scope_access
|
||||
field: (identifier) @variable.member)
|
||||
|
||||
; Literals
|
||||
|
||||
(string) @string
|
||||
|
||||
(escape_sequence) @string.escape
|
||||
|
|
@ -59,16 +53,26 @@
|
|||
(boolean) @boolean
|
||||
|
||||
; Punctuation
|
||||
|
||||
[ "{" "}" "[" "]" "(" ")" ] @punctuation.bracket
|
||||
[
|
||||
"{"
|
||||
"}"
|
||||
"["
|
||||
"]"
|
||||
"("
|
||||
")"
|
||||
] @punctuation.bracket
|
||||
|
||||
[
|
||||
"."
|
||||
","
|
||||
] @punctuation.delimiter
|
||||
|
||||
(expansion ["$" "${" "}"] @punctuation.special)
|
||||
(expansion
|
||||
[
|
||||
"$"
|
||||
"${"
|
||||
"}"
|
||||
] @punctuation.special)
|
||||
|
||||
; Comments
|
||||
|
||||
(comment) @comment
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue