Unnamed repository; edit this file 'description' to name the repository.
Update gleam tree-sitter grammar (#13793)
Damir Vandic 8 months ago
parent 6b94d70 · commit 3c6c221
-rw-r--r--languages.toml2
-rw-r--r--runtime/queries/gleam/textobjects.scm6
2 files changed, 4 insertions, 4 deletions
diff --git a/languages.toml b/languages.toml
index d91fb54c..b494d998 100644
--- a/languages.toml
+++ b/languages.toml
@@ -2083,7 +2083,7 @@ auto-format = true
[[grammar]]
name = "gleam"
-source = { git = "https://github.com/gleam-lang/tree-sitter-gleam", rev = "426e67087fd62be5f4533581b5916b2cf010fb5b" }
+source = { git = "https://github.com/gleam-lang/tree-sitter-gleam", rev = "6ece453acf8b14568c10f629f8cd25d3dde3794f" }
[[language]]
name = "quarto"
diff --git a/runtime/queries/gleam/textobjects.scm b/runtime/queries/gleam/textobjects.scm
index 19cd0dcf..bdbcfbb4 100644
--- a/runtime/queries/gleam/textobjects.scm
+++ b/runtime/queries/gleam/textobjects.scm
@@ -1,11 +1,11 @@
(function
parameters: (function_parameters (function_parameter)? @parameter.inside)
- body: (function_body) @function.inside) @function.around
+ body: (block) @function.inside) @function.around
(anonymous_function
- body: (function_body) @function.inside) @function.around
+ body: (block) @function.inside) @function.around
((function
name: (identifier) @_name
- body: (function_body) @test.inside) @test.around
+ body: (block) @test.inside) @test.around
(#match? @_name "_test$"))