mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-12 08:20:05 -04:00
chore: query formatting
This commit is contained in:
parent
79975d6557
commit
57a8acf0c4
674 changed files with 18466 additions and 12648 deletions
|
|
@ -1,13 +1,10 @@
|
|||
; Include
|
||||
|
||||
"#include" @keyword.import
|
||||
|
||||
(include_path) @string
|
||||
|
||||
; Preproc
|
||||
|
||||
[
|
||||
"#pragma"
|
||||
] @keyword.directive
|
||||
"#pragma" @keyword.directive
|
||||
|
||||
(pragma_directive
|
||||
[
|
||||
|
|
@ -17,7 +14,6 @@
|
|||
] @keyword.directive)
|
||||
|
||||
; Keywords
|
||||
|
||||
[
|
||||
"asm"
|
||||
"impure"
|
||||
|
|
@ -27,12 +23,9 @@
|
|||
"type"
|
||||
] @keyword
|
||||
|
||||
[
|
||||
"return"
|
||||
] @keyword.return
|
||||
"return" @keyword.return
|
||||
|
||||
; Conditionals
|
||||
|
||||
[
|
||||
"if"
|
||||
"ifnot"
|
||||
|
|
@ -43,14 +36,12 @@
|
|||
] @keyword.conditional
|
||||
|
||||
; Exceptions
|
||||
|
||||
[
|
||||
"try"
|
||||
"catch"
|
||||
] @keyword.exception
|
||||
|
||||
; Repeats
|
||||
|
||||
[
|
||||
"do"
|
||||
"forall"
|
||||
|
|
@ -66,16 +57,13 @@
|
|||
] @type.qualifier
|
||||
|
||||
; Variables
|
||||
|
||||
(identifier) @variable
|
||||
|
||||
; Constants
|
||||
|
||||
(const_var_declarations
|
||||
name: (identifier) @constant)
|
||||
|
||||
; Functions/Methods
|
||||
|
||||
(function_definition
|
||||
name: (function_name) @function)
|
||||
|
||||
|
|
@ -86,17 +74,14 @@
|
|||
method_name: (identifier) @function.method.call)
|
||||
|
||||
; Parameters
|
||||
|
||||
(parameter) @variable.parameter
|
||||
|
||||
; Types
|
||||
|
||||
(type_identifier) @type
|
||||
|
||||
(primitive_type) @type.builtin
|
||||
|
||||
; Operators
|
||||
|
||||
[
|
||||
"="
|
||||
"+="
|
||||
|
|
@ -143,7 +128,6 @@
|
|||
] @operator
|
||||
|
||||
; Literals
|
||||
|
||||
[
|
||||
(string)
|
||||
(asm_instruction)
|
||||
|
|
@ -157,12 +141,21 @@
|
|||
(number) @number
|
||||
|
||||
; Punctuation
|
||||
[
|
||||
"{"
|
||||
"}"
|
||||
] @punctuation.bracket
|
||||
|
||||
["{" "}"] @punctuation.bracket
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"()"
|
||||
] @punctuation.bracket
|
||||
|
||||
["(" ")" "()"] @punctuation.bracket
|
||||
|
||||
["[" "]"] @punctuation.bracket
|
||||
[
|
||||
"["
|
||||
"]"
|
||||
] @punctuation.bracket
|
||||
|
||||
[
|
||||
";"
|
||||
|
|
@ -171,5 +164,4 @@
|
|||
] @punctuation.delimiter
|
||||
|
||||
; Comments
|
||||
|
||||
(comment) @comment @spell
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue