Skip to content

Commit 920999b

Browse files
derekbunchlewis6991
authored andcommitted
feat(kdl): added kdl support
1 parent 6b081ea commit 920999b

File tree

3 files changed

+100
-1
lines changed

3 files changed

+100
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ Note: support for specific languages is strictly community maintained and can br
146146
- [ ] `json5`
147147
- [ ] `jsonc`
148148
- [ ] `jsx`
149-
- [ ] `kdl`
149+
- [x] `kdl`
150150
- [ ] `kotlin`
151151
- [ ] `lalrpop`
152152
- [ ] `ledger`

queries/kdl/context.scm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
(node_children) @context

test/lang/test.kdl

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
// {{TEST}}
2+
3+
foo { // {{CONTEXT}}
4+
bar { // {{CONTEXT}}
5+
baz { // {{CONTEXT}}
6+
7+
8+
9+
10+
11+
12+
13+
14+
15+
16+
17+
18+
19+
20+
21+
22+
23+
24+
25+
26+
27+
28+
29+
30+
31+
32+
33+
34+
35+
36+
37+
38+
39+
40+
41+
42+
// {{CURSOR}}
43+
}
44+
}
45+
}
46+
47+
// {{TEST}}
48+
49+
bar { // {{CONTEXT}}
50+
51+
52+
53+
54+
55+
56+
57+
58+
59+
60+
61+
62+
63+
64+
65+
66+
67+
68+
69+
70+
71+
72+
73+
74+
75+
76+
77+
78+
79+
80+
81+
82+
83+
84+
85+
86+
87+
88+
89+
90+
91+
92+
93+
94+
95+
96+
97+
// {{CURSOR}}
98+
}

0 commit comments

Comments
 (0)