diff options
author | Michael Davis | 2022-06-03 14:31:45 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2022-06-07 11:03:31 +0000 |
commit | f7a3d357527ab30970c8da9a8ebea9e0df88329b (patch) | |
tree | 2e0a83c9606dc4fe1fecd7ac7d2028e05bac4d76 | |
parent | bcafdf404fe22f61c9d2f0d883a6654a8a9b3ca3 (diff) |
add textobject queries for gleam
-rw-r--r-- | book/src/generated/lang-support.md | 2 | ||||
-rw-r--r-- | runtime/queries/gleam/textobjects.scm | 6 |
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 |