mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 18:00:07 -04:00
chore: query formatting
This commit is contained in:
parent
79975d6557
commit
57a8acf0c4
674 changed files with 18466 additions and 12648 deletions
|
|
@ -1,3 +1 @@
|
|||
[
|
||||
(block)
|
||||
] @fold
|
||||
(block) @fold
|
||||
|
|
|
|||
|
|
@ -1,28 +1,42 @@
|
|||
(None) @constant.builtin
|
||||
|
||||
(asset_path) @string.special.url
|
||||
|
||||
(attribute_property) @property
|
||||
|
||||
(bool) @boolean
|
||||
|
||||
(comment) @comment @spell
|
||||
|
||||
(custom) @function.builtin
|
||||
|
||||
(float) @number.float
|
||||
|
||||
(integer) @number
|
||||
|
||||
(orderer) @function.call
|
||||
|
||||
(prim_path) @string.special
|
||||
|
||||
(relationship_type) @type
|
||||
|
||||
(string) @string
|
||||
|
||||
(uniform) @function.builtin
|
||||
|
||||
(variant_set_definition) @keyword
|
||||
|
||||
;; Prefer namespace highlighting, if any.
|
||||
;;
|
||||
;; e.g. `rel fizz` - `fizz` uses `@identifier`
|
||||
;; e.g. `rel foo:bar:fizz` - `foo` and `bar` use `@module` and `fizz` uses `@identifier`
|
||||
;;
|
||||
; Prefer namespace highlighting, if any.
|
||||
;
|
||||
; e.g. `rel fizz` - `fizz` uses `@identifier`
|
||||
; e.g. `rel foo:bar:fizz` - `foo` and `bar` use `@module` and `fizz` uses `@identifier`
|
||||
;
|
||||
(identifier) @variable
|
||||
|
||||
(namespace_identifier) @module
|
||||
|
||||
(namespace_identifier
|
||||
(identifier) @module
|
||||
)
|
||||
(identifier) @module)
|
||||
|
||||
[
|
||||
"class"
|
||||
|
|
@ -30,16 +44,26 @@
|
|||
"over"
|
||||
] @keyword.function
|
||||
|
||||
["(" ")" "[" "]" "{" "}"] @punctuation.bracket
|
||||
[":" ";" "."] @punctuation.delimiter
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"["
|
||||
"]"
|
||||
"{"
|
||||
"}"
|
||||
] @punctuation.bracket
|
||||
|
||||
[
|
||||
"="
|
||||
] @operator
|
||||
":"
|
||||
";"
|
||||
"."
|
||||
] @punctuation.delimiter
|
||||
|
||||
"=" @operator
|
||||
|
||||
(attribute_type) @type
|
||||
(
|
||||
(attribute_type) @type.builtin
|
||||
|
||||
((attribute_type) @type.builtin
|
||||
;format-ignore
|
||||
(#any-of? @type.builtin
|
||||
;; Reference: https://openusd.org/release/api/sdf_page_front.html
|
||||
|
|
@ -98,8 +122,7 @@
|
|||
"Transform" "Transform[]"
|
||||
"Vec3f" "Vec3f[]"))
|
||||
|
||||
(
|
||||
(identifier) @keyword
|
||||
((identifier) @keyword
|
||||
; format-ignore
|
||||
(#any-of? @keyword
|
||||
; Reference: https://openusd.org/release/api/sdf_page_front.html
|
||||
|
|
@ -159,20 +182,12 @@
|
|||
; Prim metadata
|
||||
"instanceable"))
|
||||
|
||||
;; Common attribute metadata
|
||||
(
|
||||
(layer_offset
|
||||
; Common attribute metadata
|
||||
((layer_offset
|
||||
(identifier) @keyword
|
||||
(#any-of? @keyword
|
||||
(#any-of? @keyword "offset" "scale")))
|
||||
|
||||
"offset"
|
||||
"scale"
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
;; Docstrings in USD
|
||||
; Docstrings in USD
|
||||
(metadata
|
||||
(comment)*
|
||||
(string) @comment.documentation
|
||||
)
|
||||
(comment)*
|
||||
(string) @comment.documentation)
|
||||
|
|
|
|||
|
|
@ -11,14 +11,29 @@
|
|||
(variant_set_definition) ; The {}s in `variantSet "foo" = { "vr1" { ... } "vr2" { ... } }`
|
||||
] @indent.begin
|
||||
|
||||
(block "}" @indent.end)
|
||||
(dictionary "}" @indent.end)
|
||||
(list "]" @indent.end)
|
||||
(list_proxy "]" @indent.end)
|
||||
(metadata ")" @indent.end)
|
||||
(timeSamples "}" @indent.end)
|
||||
(tuple ")" @indent.end)
|
||||
(variant_set_definition "}" @indent.end)
|
||||
(block
|
||||
"}" @indent.end)
|
||||
|
||||
(dictionary
|
||||
"}" @indent.end)
|
||||
|
||||
(list
|
||||
"]" @indent.end)
|
||||
|
||||
(list_proxy
|
||||
"]" @indent.end)
|
||||
|
||||
(metadata
|
||||
")" @indent.end)
|
||||
|
||||
(timeSamples
|
||||
"}" @indent.end)
|
||||
|
||||
(tuple
|
||||
")" @indent.end)
|
||||
|
||||
(variant_set_definition
|
||||
"}" @indent.end)
|
||||
|
||||
[
|
||||
")"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue