mirror of
https://github.com/stevearc/aerial.nvim
synced 2024-09-16 14:34:08 +02:00
Added WIP USD-filetype unittests
This commit is contained in:
parent
a3c227e681
commit
f88fb659a4
2 changed files with 89 additions and 3 deletions
|
@ -27,5 +27,11 @@
|
|||
(variant_set_definition
|
||||
(string) @name
|
||||
(#offset! @name 0 1 0 -1)
|
||||
(#set! "kind" "Property")
|
||||
(#set! "kind" "Enum")
|
||||
) @type
|
||||
|
||||
(variant
|
||||
(string) @name
|
||||
(#offset! @name 0 1 0 -1)
|
||||
(#set! "kind" "EnumMember")
|
||||
) @type
|
||||
|
|
|
@ -9,8 +9,88 @@ describe("treesitter USD", function()
|
|||
level = 0,
|
||||
lnum = 3,
|
||||
col = 0,
|
||||
end_lnum = 4,
|
||||
end_col = 8,
|
||||
end_lnum = 3,
|
||||
end_col = 21,
|
||||
children = {
|
||||
{
|
||||
kind = "Class",
|
||||
name = "child",
|
||||
level = 1,
|
||||
lnum = 7,
|
||||
col = 5,
|
||||
end_lnum = 7,
|
||||
end_col = 21,
|
||||
children = {
|
||||
{
|
||||
kind = "Property",
|
||||
name = "foo:xformOp:rotateXYZ",
|
||||
level = 2,
|
||||
lnum = 9,
|
||||
col = 9,
|
||||
end_lnum = 9,
|
||||
end_col = 58,
|
||||
},
|
||||
{
|
||||
kind = "Property",
|
||||
name = "translate",
|
||||
level = 2,
|
||||
lnum = 10,
|
||||
col = 9,
|
||||
end_lnum = 10,
|
||||
end_col = 48,
|
||||
},
|
||||
{
|
||||
kind = "Property",
|
||||
name = "xformOpOrder",
|
||||
level = 2,
|
||||
lnum = 11,
|
||||
col = 9,
|
||||
end_lnum = 11,
|
||||
end_col = 81,
|
||||
},
|
||||
{
|
||||
kind = "Enum",
|
||||
name = "variants",
|
||||
level = 2,
|
||||
lnum = 13,
|
||||
col = 9,
|
||||
end_lnum = 13,
|
||||
end_col = 31,
|
||||
children = {
|
||||
{
|
||||
kind = "EnumMember",
|
||||
name = "default",
|
||||
level = 3,
|
||||
lnum = 14,
|
||||
col = 13,
|
||||
end_lnum = 14,
|
||||
end_col = 21,
|
||||
},
|
||||
{
|
||||
kind = "EnumMember",
|
||||
name = "one",
|
||||
level = 3,
|
||||
lnum = 15,
|
||||
col = 13,
|
||||
end_lnum = 15,
|
||||
end_col = 21,
|
||||
children = {
|
||||
{
|
||||
kind = "Property",
|
||||
name = "xformOp:translate",
|
||||
level = 4,
|
||||
lnum = 17,
|
||||
col = 17,
|
||||
end_lnum = 17,
|
||||
end_col = 56,
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
})
|
||||
end)
|
||||
|
|
Loading…
Reference in a new issue