summaryrefslogtreecommitdiff
path: root/queries
diff options
context:
space:
mode:
Diffstat (limited to 'queries')
-rw-r--r--queries/gleam/highlights.scm13
1 files changed, 9 insertions, 4 deletions
diff --git a/queries/gleam/highlights.scm b/queries/gleam/highlights.scm
index 33c54a35..eadacce6 100644
--- a/queries/gleam/highlights.scm
+++ b/queries/gleam/highlights.scm
@@ -82,6 +82,9 @@
"||"
] @operator
+; Identifiers
+(identifier) @variable
+
; Comments
[
(module_comment)
@@ -101,9 +104,6 @@
(remote_type_identifier module: (identifier) @namespace)
(unqualified_import name: (identifier) @function)
-; Identifiers
-(identifier) @variable
-
; Strings
(string) @string
@@ -125,10 +125,14 @@
(record arguments: (arguments (argument label: (label) @property ":" @property)?))
(record_pattern_argument label: (label) @property ":" @property)
(record_update_argument label: (label) @property ":" @property)
+(field_access record: (identifier) @variable field: (label) @property)
; Type Constructors
(type_constructor_argument label: (label) @property ":" @property)
+; Type Parameters
+(type_parameter) @parameter
+
; Types
((type_identifier) @type (#not-any-of? @type "True" "False"))
@@ -145,10 +149,11 @@
(function name: (identifier) @function)
(public_function name: (identifier) @function)
(function_call function: (identifier) @function)
-(function_call function: (field_access record: (identifier) @namespace field: (label) @function))
+(function_call function: (field_access field: (label) @function))
; External Functions
(public_external_function name: (identifier) @function)
+(external_function name: (identifier) @function)
(external_function_body (string) @namespace . (string) @function)
; Pipe Operator