aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--languages.toml2
-rw-r--r--runtime/queries/gleam/highlights.scm5
-rw-r--r--runtime/queries/gleam/locals.scm2
3 files changed, 7 insertions, 2 deletions
diff --git a/languages.toml b/languages.toml
index 16e78a9b..b1984fb5 100644
--- a/languages.toml
+++ b/languages.toml
@@ -1127,7 +1127,7 @@ indent = { tab-width = 2, unit = " " }
[[grammar]]
name = "gleam"
-source = { git = "https://github.com/gleam-lang/tree-sitter-gleam", rev = "7159ce961592192b0e7cdf88782cda0fdf41a4cb" }
+source = { git = "https://github.com/gleam-lang/tree-sitter-gleam", rev = "d7861b2a4b4d594c58bb4f1be5f1f4ee4c67e5c3" }
[[language]]
name = "ron"
diff --git a/runtime/queries/gleam/highlights.scm b/runtime/queries/gleam/highlights.scm
index ed3fceca..8cff6b51 100644
--- a/runtime/queries/gleam/highlights.scm
+++ b/runtime/queries/gleam/highlights.scm
@@ -12,6 +12,8 @@
(import alias: (identifier) @namespace)
(remote_type_identifier
module: (identifier) @namespace)
+(remote_constructor_name
+ module: (identifier) @namespace)
((field_access
record: (identifier) @namespace
field: (label) @function)
@@ -45,6 +47,9 @@
(remote_type_identifier) @type
(type_identifier) @type
+; Data constructors
+(constructor_name) @constructor
+
; Literals
(string) @string
(bit_string_segment_option) @function.builtin
diff --git a/runtime/queries/gleam/locals.scm b/runtime/queries/gleam/locals.scm
index bd5903e5..49300573 100644
--- a/runtime/queries/gleam/locals.scm
+++ b/runtime/queries/gleam/locals.scm
@@ -1,5 +1,5 @@
; Scopes
-(function_body) @local.scope
+(function) @local.scope
(case_clause) @local.scope