mirror of
https://github.com/nvim-treesitter/nvim-treesitter-context
synced 2024-09-16 14:14:03 +02:00
Add USD language (#278)
* Added USD context support * Added USD as a supported language * Added more USD context rules * Added test/test.usd
This commit is contained in:
parent
f24a86c322
commit
e3535ff78a
3 changed files with 117 additions and 0 deletions
|
@ -73,6 +73,7 @@ use 'nvim-treesitter/nvim-treesitter-context'
|
|||
- [x] `toml`
|
||||
- [x] `tsx`
|
||||
- [x] `typescript`
|
||||
- [x] `usd`
|
||||
- [x] `verilog`
|
||||
- [x] `vim`
|
||||
- [x] `yaml`
|
||||
|
|
5
queries/usd/context.scm
Normal file
5
queries/usd/context.scm
Normal file
|
@ -0,0 +1,5 @@
|
|||
([
|
||||
(prim_definition)
|
||||
(variant_set_definition)
|
||||
(variant)
|
||||
] @context)
|
111
test/test.usd
Normal file
111
test/test.usd
Normal file
|
@ -0,0 +1,111 @@
|
|||
def Xform "thing"
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
def "thing" {}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
def Scope "child"
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
variantSet "thing" = {
|
||||
"stuff" {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
def Scope "more_child_001"
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
Reference in a new issue