mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 01:40:02 -04:00
chore: query formatting
This commit is contained in:
parent
79975d6557
commit
57a8acf0c4
674 changed files with 18466 additions and 12648 deletions
|
|
@ -1,5 +1,4 @@
|
|||
;; Misc
|
||||
|
||||
; Misc
|
||||
[
|
||||
(line_comment)
|
||||
(block_comment)
|
||||
|
|
@ -8,6 +7,7 @@
|
|||
|
||||
((line_comment) @comment.documentation
|
||||
(#lua-match? @comment.documentation "^///[^/]"))
|
||||
|
||||
((line_comment) @comment.documentation
|
||||
(#lua-match? @comment.documentation "^///$"))
|
||||
|
||||
|
|
@ -18,9 +18,12 @@
|
|||
(#lua-match? @comment.documentation "^/[+][+][^+].*[+]/$"))
|
||||
|
||||
[
|
||||
"(" ")"
|
||||
"[" "]"
|
||||
"{" "}"
|
||||
"("
|
||||
")"
|
||||
"["
|
||||
"]"
|
||||
"{"
|
||||
"}"
|
||||
] @punctuation.bracket
|
||||
|
||||
[
|
||||
|
|
@ -35,8 +38,7 @@
|
|||
"$"
|
||||
] @punctuation.special
|
||||
|
||||
;; Constants
|
||||
|
||||
; Constants
|
||||
[
|
||||
"__FILE_FULL_PATH__"
|
||||
"__FILE__"
|
||||
|
|
@ -66,11 +68,9 @@
|
|||
"false"
|
||||
] @boolean
|
||||
|
||||
;; Functions
|
||||
|
||||
; Functions
|
||||
(func_declarator
|
||||
(identifier) @function
|
||||
)
|
||||
(identifier) @function)
|
||||
|
||||
[
|
||||
"__traits"
|
||||
|
|
@ -83,29 +83,22 @@
|
|||
] @function.builtin
|
||||
|
||||
(import_expression
|
||||
"import" @function.builtin
|
||||
)
|
||||
"import" @function.builtin)
|
||||
|
||||
(parameter
|
||||
(var_declarator
|
||||
(identifier) @variable.parameter
|
||||
)
|
||||
)
|
||||
(identifier) @variable.parameter))
|
||||
|
||||
(function_literal
|
||||
(identifier) @variable.parameter
|
||||
)
|
||||
(identifier) @variable.parameter)
|
||||
|
||||
(constructor
|
||||
"this" @constructor
|
||||
)
|
||||
"this" @constructor)
|
||||
|
||||
(destructor
|
||||
"this" @constructor
|
||||
)
|
||||
|
||||
;; Keywords
|
||||
"this" @constructor)
|
||||
|
||||
; Keywords
|
||||
[
|
||||
"case"
|
||||
"default"
|
||||
|
|
@ -238,51 +231,45 @@
|
|||
] @type.qualifier
|
||||
|
||||
(alias_assignment
|
||||
. (identifier) @type.definition)
|
||||
.
|
||||
(identifier) @type.definition)
|
||||
|
||||
(module_declaration
|
||||
"module" @keyword.import
|
||||
)
|
||||
"module" @keyword.import)
|
||||
|
||||
(import_declaration
|
||||
"import" @keyword.import
|
||||
)
|
||||
"import" @keyword.import)
|
||||
|
||||
(type) @type
|
||||
|
||||
(catch_parameter
|
||||
(qualified_identifier) @type
|
||||
)
|
||||
(qualified_identifier) @type)
|
||||
|
||||
(var_declarations
|
||||
(qualified_identifier) @type
|
||||
)
|
||||
(qualified_identifier) @type)
|
||||
|
||||
(func_declaration
|
||||
(qualified_identifier) @type
|
||||
)
|
||||
(qualified_identifier) @type)
|
||||
|
||||
(parameter
|
||||
(qualified_identifier) @type
|
||||
)
|
||||
(qualified_identifier) @type)
|
||||
|
||||
(class_declaration
|
||||
(identifier) @type
|
||||
)
|
||||
(identifier) @type)
|
||||
|
||||
(fundamental_type) @type.builtin
|
||||
|
||||
(module_fully_qualified_name (packages (package_name) @module))
|
||||
(module_fully_qualified_name
|
||||
(packages
|
||||
(package_name) @module))
|
||||
|
||||
(module_name) @module
|
||||
|
||||
(at_attribute) @attribute
|
||||
|
||||
(user_defined_attribute
|
||||
"@" @attribute
|
||||
)
|
||||
|
||||
;; Variables
|
||||
"@" @attribute)
|
||||
|
||||
; Variables
|
||||
(primary_expression
|
||||
"this" @variable.builtin
|
||||
)
|
||||
"this" @variable.builtin)
|
||||
|
|
|
|||
|
|
@ -5,9 +5,12 @@
|
|||
] @indent.begin
|
||||
|
||||
[
|
||||
"(" ")"
|
||||
"{" "}"
|
||||
"[" "]"
|
||||
"("
|
||||
")"
|
||||
"{"
|
||||
"}"
|
||||
"["
|
||||
"]"
|
||||
] @indent.branch
|
||||
|
||||
[
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
(line_comment)
|
||||
(block_comment)
|
||||
(nesting_block_comment)
|
||||
] @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
] @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
((token_string_tokens) @injection.content
|
||||
(#set! injection.language "d"))
|
||||
(#set! injection.language "d"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue