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

@ -1,20 +1,24 @@
; highlights.scm
; See this for full list: https://github.com/nvim-treesitter/nvim-treesitter/blob/master/CONTRIBUTING.md
; comments
(line_comment) @comment @spell
(block_comment) @comment @spell
; Argument definition
(argument name: (identifier) @variable.parameter)
(argument
name: (identifier) @variable.parameter)
; Variables
(local_var name: (identifier) @variable)
(environment_var name:(identifier) @variable.builtin)
(local_var
name: (identifier) @variable)
(environment_var
name: (identifier) @variable.builtin)
(builtin_var) @constant.builtin
; (variable) @variable
; Functions
(function_definition
name: (variable) @function)
@ -25,49 +29,51 @@
; Methods
(method_call
name: (method_name) @function.method)
name: (method_name) @function.method)
; Classes
(class) @type
; Literals
(number) @number
(float) @number.float
(string) @string
(symbol) @string.special.symbol
; Operators
[
"&&"
"||"
"&"
"|"
"^"
"=="
"!="
"<"
"<="
">"
">="
"<<"
">>"
"+"
"-"
"*"
"/"
"%"
"="
"&&"
"||"
"&"
"|"
"^"
"=="
"!="
"<"
"<="
">"
">="
"<<"
">>"
"+"
"-"
"*"
"/"
"%"
"="
] @operator
; Keywords
[
"arg"
"classvar"
"const"
; "super"
; "this"
"var"
"arg"
"classvar"
"const"
; "super"
; "this"
"var"
] @keyword
; Brackets