diff --git a/languages.toml b/languages.toml index d91fb54c7..b494d9983 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 19cd0dcf9..bdbcfbb43 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$"))