From f7a3d357527ab30970c8da9a8ebea9e0df88329b Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Fri, 3 Jun 2022 09:31:45 -0500 Subject: [PATCH] add textobject queries for gleam --- book/src/generated/lang-support.md | 2 +- runtime/queries/gleam/textobjects.scm | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 runtime/queries/gleam/textobjects.scm diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index 064438fdf..980b3bdc9 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 000000000..b382f4bd0 --- /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