diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2023-12-24 12:52:21 +0100 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-01-19 16:58:37 +0100 |
| commit | 10dd49958c96f86c8247c715bd20a6681afc1d8b (patch) | |
| tree | 511849caff160e818f4dd08a6106137dcadb620d /tests/query/highlights/usd | |
| parent | feat(injections): add printf format strings (diff) | |
| download | nvim-treesitter-10dd49958c96f86c8247c715bd20a6681afc1d8b.tar nvim-treesitter-10dd49958c96f86c8247c715bd20a6681afc1d8b.tar.gz nvim-treesitter-10dd49958c96f86c8247c715bd20a6681afc1d8b.tar.bz2 nvim-treesitter-10dd49958c96f86c8247c715bd20a6681afc1d8b.tar.lz nvim-treesitter-10dd49958c96f86c8247c715bd20a6681afc1d8b.tar.xz nvim-treesitter-10dd49958c96f86c8247c715bd20a6681afc1d8b.tar.zst nvim-treesitter-10dd49958c96f86c8247c715bd20a6681afc1d8b.zip | |
chore(tests): consistent captures
Diffstat (limited to 'tests/query/highlights/usd')
| -rw-r--r-- | tests/query/highlights/usd/prims.usda | 80 | ||||
| -rw-r--r-- | tests/query/highlights/usd/properties.usda | 28 | ||||
| -rw-r--r-- | tests/query/highlights/usd/subLayers.usda | 6 |
3 files changed, 57 insertions, 57 deletions
diff --git a/tests/query/highlights/usd/prims.usda b/tests/query/highlights/usd/prims.usda index eeac67d74..eeeeae920 100644 --- a/tests/query/highlights/usd/prims.usda +++ b/tests/query/highlights/usd/prims.usda @@ -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 } } diff --git a/tests/query/highlights/usd/properties.usda b/tests/query/highlights/usd/properties.usda index 67df8a623..e518c73f7 100644 --- a/tests/query/highlights/usd/properties.usda +++ b/tests/query/highlights/usd/properties.usda @@ -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 diff --git a/tests/query/highlights/usd/subLayers.usda b/tests/query/highlights/usd/subLayers.usda index b4dfa6298..24581b90a 100644 --- a/tests/query/highlights/usd/subLayers.usda +++ b/tests/query/highlights/usd/subLayers.usda @@ -1,9 +1,9 @@ #usda 1.0 ( subLayers = [ - # <- keyword + # <- @keyword @./model_sub.usda@ (offset = 1) - # <- text.uri - # ^ keyword + # <- @text.uri + # ^ @keyword ] ) |
