mirror of
https://github.com/nvim-treesitter/nvim-treesitter-context
synced 2024-09-16 14:14:03 +02:00
feat(devicetree): add devicetree support
This commit is contained in:
parent
2aba92ceb1
commit
0f3332788e
3 changed files with 20 additions and 1 deletions
|
@ -32,6 +32,7 @@ Note: support for specific languages is strictly community maintained and can br
|
|||
- [x] `cue`
|
||||
- [x] `d`
|
||||
- [x] `dart`
|
||||
- [x] `devicetree`
|
||||
- [x] `elixir`
|
||||
- [x] `elm`
|
||||
- [x] `fennel`
|
||||
|
@ -107,7 +108,6 @@ Note: support for specific languages is strictly community maintained and can br
|
|||
- [ ] `commonlisp`
|
||||
- [ ] `cooklang`
|
||||
- [ ] `cpon`
|
||||
- [ ] `devicetree`
|
||||
- [ ] `dhall`
|
||||
- [ ] `dockerfile`
|
||||
- [ ] `dot`
|
||||
|
|
1
queries/devicetree/context.scm
Normal file
1
queries/devicetree/context.scm
Normal file
|
@ -0,0 +1 @@
|
|||
(node) @context
|
18
test/lang/test.dts
Normal file
18
test/lang/test.dts
Normal file
|
@ -0,0 +1,18 @@
|
|||
/dts-v1/;
|
||||
|
||||
// {{TEST}}
|
||||
|
||||
/ { // {{CONTEXT}}
|
||||
compatible = "test";
|
||||
#address-cells = <2>;
|
||||
#size-cells = <2>;
|
||||
|
||||
soc { // {{CONTEXT}}
|
||||
compatible = "simple-bus";
|
||||
ranges;
|
||||
#address-cells = <2>;
|
||||
#size-cells = <2>;
|
||||
|
||||
// {{CURSOR}}
|
||||
};
|
||||
};
|
Loading…
Reference in a new issue