feat(devicetree): add devicetree support

This commit is contained in:
Sönke Holz 2024-08-06 23:21:48 +02:00 committed by Lewis Russell
parent 2aba92ceb1
commit 0f3332788e
3 changed files with 20 additions and 1 deletions

View file

@ -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`

View file

@ -0,0 +1 @@
(node) @context

18
test/lang/test.dts Normal file
View 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}}
};
};