mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -04:00
chore(tests): consistent captures
This commit is contained in:
parent
17fae3f4a3
commit
10dd49958c
60 changed files with 872 additions and 873 deletions
|
|
@ -1,11 +1,11 @@
|
|||
def Xform "cube" (
|
||||
assetInfo = {
|
||||
# <- keyword
|
||||
# <- @keyword
|
||||
asset[] payloadAssetDependencies = [@fizz.usd@, @buzz.usd@]
|
||||
# <- type
|
||||
# ^ keyword
|
||||
# ^ text.uri
|
||||
# ^ text.uri
|
||||
# <- @type
|
||||
# ^ @keyword
|
||||
# ^ @text.uri
|
||||
# ^ @text.uri
|
||||
}
|
||||
)
|
||||
{
|
||||
|
|
@ -13,13 +13,13 @@ def Xform "cube" (
|
|||
|
||||
def "root" (
|
||||
add references = @foo.usda@</Model> (offset = 1; scale = 2.0)
|
||||
# <- text.uri
|
||||
# ^ string.special
|
||||
# ^ keyword
|
||||
# ^ number
|
||||
# ^ punctuation.delimiter
|
||||
# ^ keyword
|
||||
# ^ float
|
||||
# <- @text.uri
|
||||
# ^ @string.special
|
||||
# ^ @keyword
|
||||
# ^ @number
|
||||
# ^ @punctuation.delimiter
|
||||
# ^ @keyword
|
||||
# ^ @float
|
||||
)
|
||||
{
|
||||
}
|
||||
|
|
@ -28,14 +28,14 @@ def "World"
|
|||
{
|
||||
over "points" (
|
||||
clips = {
|
||||
# <- keyword
|
||||
# <- @keyword
|
||||
dictionary default = {
|
||||
# <- type
|
||||
# ^ variable
|
||||
# <- @type
|
||||
# ^ @variable
|
||||
double2[] times = [(101, 101), (102, 102)]
|
||||
# <- type
|
||||
# ^ keyword
|
||||
# ^ number
|
||||
# <- @type
|
||||
# ^ @keyword
|
||||
# ^ @number
|
||||
}
|
||||
}
|
||||
)
|
||||
|
|
@ -49,9 +49,9 @@ def Xform "torch_2" (
|
|||
)
|
||||
{
|
||||
// Pre-published light list
|
||||
# <- comment
|
||||
# <- @comment
|
||||
rel lightList = [ <light> ] # inline comment
|
||||
# ^ comment
|
||||
# ^ @comment
|
||||
token lightList:cacheBehavior = "consumeAndContinue"
|
||||
|
||||
double3 xformOp:translate = (1, 0, 0.5)
|
||||
|
|
@ -60,7 +60,7 @@ def Xform "torch_2" (
|
|||
|
||||
def "foo" (
|
||||
"some comment"
|
||||
# <- comment.documentation
|
||||
# <- @comment.documentation
|
||||
)
|
||||
{
|
||||
}
|
||||
|
|
@ -68,20 +68,20 @@ def "foo" (
|
|||
def "foo" (
|
||||
# inline comment
|
||||
"actual in-description comment"
|
||||
# <- comment.documentation
|
||||
# <- @comment.documentation
|
||||
)
|
||||
{
|
||||
}
|
||||
|
||||
def "foo" (
|
||||
add references = @foo.usda@
|
||||
# <- function.call
|
||||
# <- @function.call
|
||||
append references = @foo.usda@
|
||||
# <- function.call
|
||||
# <- @function.call
|
||||
delete references = @foo.usda@
|
||||
# <- function.call
|
||||
# <- @function.call
|
||||
reorder references = [@foo.usda@]
|
||||
# <- function.call
|
||||
# <- @function.call
|
||||
|
||||
references = [@foo.usda@] # explicit
|
||||
)
|
||||
|
|
@ -90,11 +90,11 @@ def "foo" (
|
|||
|
||||
over "Parent" (
|
||||
prepend references = [</InternalRef>, @./ref.usda@</RefParent>]
|
||||
# <- function.call
|
||||
# ^ keyword
|
||||
# ^ string.special
|
||||
# ^ text.uri
|
||||
# ^ string.special
|
||||
# <- @function.call
|
||||
# ^ @keyword
|
||||
# ^ @string.special
|
||||
# ^ @text.uri
|
||||
# ^ @string.special
|
||||
)
|
||||
{
|
||||
}
|
||||
|
|
@ -102,17 +102,17 @@ over "Parent" (
|
|||
def "foo"
|
||||
{
|
||||
float value.timeSamples = {
|
||||
# <- type
|
||||
# ^ variable
|
||||
# ^ property
|
||||
# <- @type
|
||||
# ^ @variable
|
||||
# ^ @property
|
||||
-414: 14.4
|
||||
# <- number
|
||||
# ^ float
|
||||
# <- @number
|
||||
# ^ @float
|
||||
10: 201.0,
|
||||
# <- number
|
||||
# ^ float
|
||||
# <- @number
|
||||
# ^ @float
|
||||
10.123: 201.0123,
|
||||
# <- float
|
||||
# ^ float
|
||||
# <- @float
|
||||
# ^ @float
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,21 +1,21 @@
|
|||
dictionary foo = {}
|
||||
# <- type
|
||||
# <- @type
|
||||
half[] foo = [2, 1, 2]
|
||||
# <- type
|
||||
# <- @type
|
||||
string foo = "something"
|
||||
# <- type
|
||||
# <- @type
|
||||
timecode time = 1.0
|
||||
# <- type
|
||||
# <- @type
|
||||
token[] purpose = ["default", "render"]
|
||||
# <- type
|
||||
# <- @type
|
||||
|
||||
rel material:binding:collection:Erasers = None
|
||||
# <- type
|
||||
# ^ namespace
|
||||
# ^ punctuation.delimiter
|
||||
# ^ namespace
|
||||
# ^ punctuation.delimiter
|
||||
# ^ namespace
|
||||
# ^ punctuation.delimiter
|
||||
# ^ variable
|
||||
# ^ constant.builtin
|
||||
# <- @type
|
||||
# ^ @namespace
|
||||
# ^ @punctuation.delimiter
|
||||
# ^ @namespace
|
||||
# ^ @punctuation.delimiter
|
||||
# ^ @namespace
|
||||
# ^ @punctuation.delimiter
|
||||
# ^ @variable
|
||||
# ^ @constant.builtin
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
#usda 1.0
|
||||
(
|
||||
subLayers = [
|
||||
# <- keyword
|
||||
# <- @keyword
|
||||
@./model_sub.usda@ (offset = 1)
|
||||
# <- text.uri
|
||||
# ^ keyword
|
||||
# <- @text.uri
|
||||
# ^ @keyword
|
||||
]
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue