aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--book/src/generated/lang-support.md2
-rw-r--r--runtime/queries/gleam/textobjects.scm6
2 files changed, 7 insertions, 1 deletions
diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md
index 064438fd..980b3bdc 100644
--- a/book/src/generated/lang-support.md
+++ b/book/src/generated/lang-support.md
@@ -27,7 +27,7 @@
| git-diff | ✓ | | | |
| git-ignore | ✓ | | | |
| git-rebase | ✓ | | | |
-| gleam | ✓ | | | |
+| gleam | ✓ | ✓ | | |
| glsl | ✓ | | ✓ | |
| go | ✓ | ✓ | ✓ | `gopls` |
| gomod | ✓ | | | `gopls` |
diff --git a/runtime/queries/gleam/textobjects.scm b/runtime/queries/gleam/textobjects.scm
new file mode 100644
index 00000000..b382f4bd
--- /dev/null
+++ b/runtime/queries/gleam/textobjects.scm
@@ -0,0 +1,6 @@
+(function
+ parameters: (function_parameters (function_parameter)? @parameter.inside)
+ body: (function_body) @function.inside) @function.around
+
+(anonymous_function
+ body: (function_body) @function.inside) @function.around