summaryrefslogtreecommitdiff
path: root/runtime/queries/gleam/highlights.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/gleam/highlights.scm')
-rw-r--r--runtime/queries/gleam/highlights.scm5
1 files changed, 5 insertions, 0 deletions
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