Skip to content

Commit 09c790f

Browse files
committed
fixup! feat(gleam): add textobjects
1 parent 2e4c7c9 commit 09c790f

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

queries/gleam/textobjects.scm

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,20 @@
193193

194194
; functions
195195
(function
196-
body: (block) @function.inner) @function.outer
196+
body: (block
197+
"{"
198+
.
199+
_+ @function.inner
200+
.
201+
"}")) @function.outer
197202

198203
(anonymous_function
199-
body: (block) @function.inner) @function.outer
204+
body: (block
205+
"{"
206+
.
207+
_+ @function.inner
208+
.
209+
"}")) @function.outer
200210

201211
; returns
202212
(function

0 commit comments

Comments
 (0)