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/julia | |
| 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/julia')
| -rw-r--r-- | tests/query/highlights/julia/test.jl | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/tests/query/highlights/julia/test.jl b/tests/query/highlights/julia/test.jl index 46fc313c0..065df5c9e 100644 --- a/tests/query/highlights/julia/test.jl +++ b/tests/query/highlights/julia/test.jl @@ -1,26 +1,26 @@ function load_data(::Symbol; ::Int) :: Tuple -# <- keyword.function -# ^ function -# ^ punctuation.bracket -# ^^ punctuation.delimiter -# ^ type.builtin -# ^ punctuation.delimiter -# ^^ punctuation.delimiter -# ^^^ type.builtin -# ^ punctuation.bracket -# ^^ punctuation.delimiter -# ^ type.builtin +# <- @keyword.function +# ^ @function +# ^ @punctuation.bracket +# ^^ @punctuation.delimiter +# ^ @type.builtin +# ^ @punctuation.delimiter +# ^^ @punctuation.delimiter +# ^^^ @type.builtin +# ^ @punctuation.bracket +# ^^ @punctuation.delimiter +# ^ @type.builtin dataset = CIFAR10(; Tx = Float32, split = split) -# ^^^^^^^ variable -# ^ operator -# ^ function.call -# ^ operator -# ^ type.builtin +# ^^^^^^^ @variable +# ^ @operator +# ^ @function.call +# ^ @operator +# ^ @type.builtin X = reshape(dataset.features[:, :, :, begin:n_obs], :, n_obs) # flattening the image pixels -# ^^^^^ variable.builtin +# ^^^^^ @variable.builtin y = categorical2onehot(dataset.targets[begin:n_obs], N_LABELS) -# ^^^^^ variable.builtin +# ^^^^^ @variable.builtin return X, y -# ^^^^^^ keyword.return +# ^^^^^^ @keyword.return end -# <- keyword.function +# <- @keyword.function |
