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
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue